diff options
author | Thiago Santos <thiagossantos@gmail.com> | 2019-05-02 22:14:35 -0700 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-08-07 08:49:34 +0100 |
commit | 9ee320f66e2676564040240b2e71c2f30be7cd6f (patch) | |
tree | 3164e40e4e1d4ec684ca96d15a1e56c0c4c280f9 | |
parent | 49e87840251fdcac9ffb1ed857410127ad01fc17 (diff) | |
download | gstreamer-plugins-good-9ee320f66e2676564040240b2e71c2f30be7cd6f.tar.gz |
rtspsrc: do not try to send EOS with invalid seqnum
The second udpsrc (rtcp) might not have seen the segment event if it was
not enabled or if rtcp is not available on the server. So if the
application tries to send an EOS event it will try to set an invalid
seqnum to the event.
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 7ee473605..cc97bf75f 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4886,7 +4886,9 @@ gst_rtspsrc_stream_push_event (GstRTSPSrc * src, GstRTSPStream * stream, if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { sent_event = gst_event_new_eos (); - gst_event_set_seqnum (sent_event, stream->segment_seqnum[1]); + if (stream->segment_seqnum[1] != GST_SEQNUM_INVALID) { + gst_event_set_seqnum (sent_event, stream->segment_seqnum[1]); + } } else { sent_event = gst_event_ref (event); } |