Hi all,
I'm starting to dev with gstreamer, I want to use GstGLImageSink but I cannot find the header with the definition, am I missing something ? About the signal "client-draw", the definition of code and doc does not match here (check parameters type and count) : https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html#GstGLImageSink-client-draw Also, classes use in properties links are dead on this page https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html , and often ones related to gl here https://gstreamer.freedesktop.org/documentation/plugins.html . -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le vendredi 18 mai 2018 à 01:23 -0700, apap a écrit :
> Hi all, > > I'm starting to dev with gstreamer, I want to use GstGLImageSink but I > cannot find the header with the definition, am I missing something ? GStreamer is plugins based, all plugins implement a common interface, hence there is no per element headers. To get this element: element = gst_element_factory_make ("glimagesink", NULL); > > About the signal "client-draw", the definition of code and doc does not > match here (check parameters type and count) : > https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html#GstGLImageSink-client-draw When connecting a signal, use g_signal_connect() and cast all function pointer using G_CALLBACK(). > > Also, classes use in properties links are dead on this page > https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html > , and often ones related to gl here > https://gstreamer.freedesktop.org/documentation/plugins.html . Thanks for reporting, we'll try and fix this, this is because these element got moved from -bad to -base repository in last release. We forgot to update some the the static content of the webpage. Correct links are: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesink.html https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (201 bytes) Download Attachment |
Thank you for your answer.
I just miss something, that's not clear in the doc, what are the correct parameters of this callback https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-glimagesinkelement.html#GstGLImageSink-client-draw ? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I'm trying to replace the video-sink of playbin by a glimagesink, here is my
code : GstElement *play = gst_element_factory_make ("playbin", "play"); GstElement *glimagesink = gst_element_factory_make ("glimagesink", NULL); g_object_set (GST_OBJECT (play), "video-sink", glimagesink, NULL); g_signal_connect (glimagesink, "client-draw", G_CALLBACK (ondraw), 0); I 've got strange values in my callback "ondraw" , what am I missing ? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le mardi 22 mai 2018 à 05:37 -0700, apap a écrit :
> I'm trying to replace the video-sink of playbin by a glimagesink, here is my > code : > > GstElement *play = gst_element_factory_make ("playbin", "play"); > GstElement *glimagesink = gst_element_factory_make ("glimagesink", NULL); > g_object_set (GST_OBJECT (play), "video-sink", glimagesink, NULL); > g_signal_connect (glimagesink, "client-draw", G_CALLBACK (ondraw), 0); > > I 've got strange values in my callback "ondraw" , what am I missing ? Show us the signature at least, so we might be able to comment. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
gboolean
ondraw (GstElement *object, guint texture, guint width, guint height, gpointer user_data) -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |