How add signal callback to rtspsrc
Sebastian Dröge
sebastian at centricular.com
Mon Mar 14 12:36:29 UTC 2016
On Mo, 2016-03-14 at 12:33 +0100, elio francesconi wrote:
> Hi all,
> I need to add a signal to my pipeline...
> This is my pipeline:
> pipeline = gst_parse_launch("rtspsrc
> location=rtsp://<ipaddress>/<url> latency=10 ! rtph264depay !
> avdec_h264 ! autovideosink", &error);
> and I need to implement the callback for "on-sdp" signal in grtsp
> element.
> Someone can explain me how do that? Thanks a lot
Give a name to rtspsrc by setting the name property, and then use
gst_bin_get_by_name() on the pipeline to get a pointer to the rtspsrc
instance. Then you can connect to the signal.
--
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/d43cd9b2/attachment.sig>
More information about the gstreamer-devel
mailing list