rtspsrc: install event function on internal RTCP pad
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 10 Dec 2009 17:42:51 +0000 (18:42 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 10 Dec 2009 17:45:55 +0000 (18:45 +0100)
Install a custom event function on the internal RTCP pad so that we can reply
TRUE to a latency event.

gst/rtsp/gstrtspsrc.c

index f3ba326..7e90c2e 100644 (file)
@@ -2205,6 +2205,7 @@ gst_rtspsrc_stream_configure_tcp (GstRTSPSrc * src, GstRTSPStream * stream,
       /* if we have a sinkpad for the other channel, create a pad and link to the
        * manager. */
       pad1 = gst_pad_new_from_template (template, "internalsrc1");
+      gst_pad_set_event_function (pad1, gst_rtspsrc_handle_internal_src_event);
       gst_pad_link (pad1, stream->channelpad[1]);
       gst_object_unref (stream->channelpad[1]);
       stream->channelpad[1] = pad1;