g_signal_connect question

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

g_signal_connect question

wanting2learn
Look at the following code:

GstElement *source = gst_element_factory_make("rtspsrc", "source");

g_signal_connect(source, "pad-added", G_CALLBACK(on_rtsppad_added),
                   null );

Now depending on what element I want to make e.g. "rtspsrc" then I can call certain callbacks e.g. "pad-added" which will have its own callback function with a defined signature.

If I have any element ("rtspsrc", "decodebin2" etc) then how can I find out what callbacks are available for that element and what the callback functions are?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: g_signal_connect question

Tim-Philipp Müller-2
On Thu, 2010-03-18 at 06:21 -0800, wanting2learn wrote:

> Look at the following code:
>
> GstElement *source = gst_element_factory_make("rtspsrc", "source");
>
> g_signal_connect(source, "pad-added", G_CALLBACK(on_rtsppad_added),
>                    null );
>
> Now depending on what element I want to make e.g. "rtspsrc" then I can call
> certain callbacks e.g. "pad-added" which will have its own callback function
> with a defined signature.
>
> If I have any element ("rtspsrc", "decodebin2" etc) then how can I find out
> what callbacks are available for that element and what the callback
> functions are?

 gst-inspect-0.10 rtspsrc

shows the properties and signals, and so does the rtspsrc documentation
page linked to from http://gstreamer.freedesktop.org/documentation/
("Overview of all Plug-ins"). In addition to the properties and signals
listed, the usual base class (GstElement, GstObject, GObject) properties
and signals are also available and documented in the GStreamer core/GLib
API reference.

Cheers
 -Tim



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_signal_connect question

wanting2learn
Thank you my friend :)
Reply | Threaded
Open this post in threaded view
|

Re: g_signal_connect question

wanting2learn
I notice that there are lots of plug-ins that do not have information about them.

e.g
qtmux Quicktime Muxer plugin
gppmux Multiplex audio and video into a 3GPP file
mj2mux Multiplex audio and video into a MJ2 file
mp4mux Multiplex audio and video into a MP4 file
qtmoovrecover Recovers unfinished qtmux files
qtmux       Multiplex audio and video into a QuickTime file


Why is this??  and how can I find out information about these??

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: g_signal_connect question

Thiago Sousa Santos-2


On Thu, Mar 18, 2010 at 11:57 AM, wanting2learn <[hidden email]> wrote:

I notice that there are lots of plug-ins that do not have information about
them.

e.g
qtmux   Quicktime Muxer plugin
gppmux  Multiplex audio and video into a 3GPP file
mj2mux  Multiplex audio and video into a MJ2 file
mp4mux  Multiplex audio and video into a MP4 file
qtmoovrecover   Recovers unfinished qtmux files
qtmux           Multiplex audio and video into a QuickTime file


Those elements have properties listed. The don't have signals/actions. As Tim has said, those elements inherit from GstElement/GObject, so you should check the docs for them to know what signals/actions/properties they might inherit from it.

 

Why is this??  and how can I find out information about these??

Thanks
--
View this message in context: http://n4.nabble.com/g-signal-connect-question-tp1598012p1598071.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Thiago Sousa Santos

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel