mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +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/7034>
This commit is contained in:
parent
bb726c7eef
commit
2015d56a41
1 changed files with 0 additions and 1 deletions
|
@ -9678,7 +9678,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