mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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.
This commit is contained in:
parent
a6e7f258ac
commit
135e12565b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue