Commit 6a790cb7 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/rtsp/gstrtspsrc.c: Ignore ASYNC state messages from the udpsink, it's...

gst/rtsp/gstrtspsrc.c: Ignore ASYNC state messages from the udpsink, it's irrelevant for the parent.

Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport),
(gst_rtspsrc_parse_rtpinfo), (gst_rtspsrc_play),
(gst_rtspsrc_handle_message):
Ignore ASYNC state messages from the udpsink, it's irrelevant for the
parent.
parent 7fe2138e
2007-04-27 Wim Taymans <wim@fluendo.com>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport),
(gst_rtspsrc_parse_rtpinfo), (gst_rtspsrc_play),
(gst_rtspsrc_handle_message):
Ignore ASYNC state messages from the udpsink, it's irrelevant for the
parent.
2007-04-27 Wim Taymans <wim@fluendo.com>
* gst/rtp/gstrtpilbcdepay.h:
......
......@@ -2898,7 +2898,7 @@ gst_rtspsrc_play (GstRTSPSrc * src)
RTSPMessage request = { 0 };
RTSPMessage response = { 0 };
RTSPResult res;
gchar *rtpinfo;
gchar *rtpinfo, *range;
GST_RTSP_STATE_LOCK (src);
......@@ -2922,6 +2922,11 @@ gst_rtspsrc_play (GstRTSPSrc * src)
rtsp_message_unset (&request);
/* parse RTP npt field. This is the current position in the stream (Normal
* Play Time) and should be put in the NEWSEGMENT position field. */
rtsp_message_get_header (&response, RTSP_HDR_RANGE, &range);
/* parse the RTP-Info header field (if ANY) to get the base seqnum and timestamp
* for the RTP packets. If this is not present, we assume all starts from 0...
* FIXME, this is info for the RTP session manager ideally. */
......@@ -3099,6 +3104,11 @@ gst_rtspsrc_handle_message (GstBin * bin, GstMessage * message)
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
break;
}
case GST_MESSAGE_ASYNC_START:
case GST_MESSAGE_ASYNC_DONE:
/* ignore messages from our internal sinks */
gst_message_unref (message);
break;
default:
{
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment