mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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.
This commit is contained in:
parent
7fe2138eea
commit
6a790cb75a
2 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
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>
|
2007-04-27 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtp/gstrtpilbcdepay.h:
|
* gst/rtp/gstrtpilbcdepay.h:
|
||||||
|
|
|
@ -2898,7 +2898,7 @@ gst_rtspsrc_play (GstRTSPSrc * src)
|
||||||
RTSPMessage request = { 0 };
|
RTSPMessage request = { 0 };
|
||||||
RTSPMessage response = { 0 };
|
RTSPMessage response = { 0 };
|
||||||
RTSPResult res;
|
RTSPResult res;
|
||||||
gchar *rtpinfo;
|
gchar *rtpinfo, *range;
|
||||||
|
|
||||||
GST_RTSP_STATE_LOCK (src);
|
GST_RTSP_STATE_LOCK (src);
|
||||||
|
|
||||||
|
@ -2922,6 +2922,11 @@ gst_rtspsrc_play (GstRTSPSrc * src)
|
||||||
|
|
||||||
rtsp_message_unset (&request);
|
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
|
/* 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...
|
* 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. */
|
* 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);
|
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GST_MESSAGE_ASYNC_START:
|
||||||
|
case GST_MESSAGE_ASYNC_DONE:
|
||||||
|
/* ignore messages from our internal sinks */
|
||||||
|
gst_message_unref (message);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
||||||
|
|
Loading…
Reference in a new issue