How add signal callback to rtspsrc
Sebastian Dröge
sebastian at centricular.com
Mon Mar 14 15:57:48 UTC 2016
On Mo, 2016-03-14 at 16:49 +0100, elio francesconi wrote:
> Hi Sebastian
> thanks for your hint.
> As you suggested I got the rtspBin element using:
> GstElement * rtspBin = gst_bin_get_by_name(GST_BIN(pipeline),
> "rtspsrc0");
> AFAIK the name is "rtspsrc0" and changes everytime I create a
> pipeline, it impossible for me detect the name because the second
> time the name is "rtspsrc1" the third "rtspsrc2"...
> Which is the correct behaviour to detect the name?
"rtspsrc name=source location=rtsp://.... ! ..."
and then use "source" as the name.
> Or.. Can I get the rtspBin using gst_bin_get_by_interface?
> In this case I can find files to include to be defined
> GST_TYPE_RTSPSRC (I'm using GStreamer library 1.6.1 under iOS)
>
> This is my code.
> GstElement * rtspBin = gst_bin_get_by_interface(GST_BIN(pipeline),
> GST_TYPE_RTSPSRC);
You should get a linker error with that, GST_TYPE_RTSPSRC is not part
of public headers or the libraries. Also it is not an interface type.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160314/5d2fe8e6/attachment.sig>
More information about the gstreamer-devel
mailing list