mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
rtspsrc: fix invalid seqnum assertions
Upon fatal errors the loop function will first post an error message then push out an EOS event. An application may react immediately to the error message by setting the state of the pipeline to NULL, meaning by the time we push out the EOS event PAUSED_TO_READY may have reset the seek seqnum to -1. While this is harmless, the assertion when setting an invalid seqnum isn't tidy, fix this by simply not resetting to INVALID as it serves no practical purpose and the next READY_TO_PAUSED will select a new seqnum anyway. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7032>
This commit is contained in:
parent
0ed9c39835
commit
a20ef245a0
1 changed files with 0 additions and 1 deletions
|
@ -9705,7 +9705,6 @@ gst_rtspsrc_change_state (GstElement * element, GstStateChange transition)
|
|||
}
|
||||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
rtspsrc->seek_seqnum = GST_SEQNUM_INVALID;
|
||||
gst_rtspsrc_loop_send_cmd_and_wait (rtspsrc, CMD_CLOSE, CMD_ALL,
|
||||
rtspsrc->teardown_timeout);
|
||||
ret = GST_STATE_CHANGE_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue