mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
rtsp-media: Set state to UNPREPARING in all cases
This commit is contained in:
parent
d48e022c13
commit
1badcd83c3
1 changed files with 2 additions and 1 deletions
|
@ -2464,6 +2464,8 @@ default_unprepare (GstRTSPMedia * media)
|
|||
{
|
||||
GstRTSPMediaPrivate *priv = media->priv;
|
||||
|
||||
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_UNPREPARING);
|
||||
|
||||
if (priv->eos_shutdown) {
|
||||
GST_DEBUG ("sending EOS for shutdown");
|
||||
/* ref so that we don't disappear */
|
||||
|
@ -2471,7 +2473,6 @@ default_unprepare (GstRTSPMedia * media)
|
|||
/* we need to go to playing again for the EOS to propagate, normally in this
|
||||
* state, nothing is receiving data from us anymore so this is ok. */
|
||||
set_state (media, GST_STATE_PLAYING);
|
||||
gst_rtsp_media_set_status (media, GST_RTSP_MEDIA_STATUS_UNPREPARING);
|
||||
} else {
|
||||
finish_unprepare (media);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue