[gst-devel] How can I know that playbin2 has created rtspsrc element, as soon as possible?
Tim-Philipp Müller
t.i.m at zen.co.uk
Wed Sep 8 10:46:26 CEST 2010
On Wed, 2010-09-08 at 00:09 -0700, wl2776 wrote:
> I am developing a universal video player, which should be capable to play
> RTSP streams also.
> I use playbin2.
>
> I am also doing some coding to the RTSPSrc element to make it able to play
> Kasenna streams (it sends x-rtsp-mh messages instead of SDP).
>
> How can I know that playbin2 has created rtspsrc element, as soon as
> possible?
>
> I need this because I want to set some properties on this element.
g_signal_connect (playbin2, "notify::source",
G_CALLBACK (configure_source), NULL);
will make sure your callback gets called as soon as the source element
has been created. There you can then get the source element from
playbin2 via g_object_get() and set properties on it as needed.
Cheers
-Tim
More information about the gstreamer-devel
mailing list