mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
media: also do state change in suspended state
This commit is contained in:
parent
53859ac34b
commit
3b4894c4f1
1 changed files with 2 additions and 1 deletions
|
@ -2584,7 +2584,8 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state,
|
|||
g_rec_mutex_lock (&priv->state_lock);
|
||||
if (priv->status == GST_RTSP_MEDIA_STATUS_ERROR)
|
||||
goto error_status;
|
||||
if (priv->status != GST_RTSP_MEDIA_STATUS_PREPARED)
|
||||
if (priv->status != GST_RTSP_MEDIA_STATUS_PREPARED &&
|
||||
priv->status != GST_RTSP_MEDIA_STATUS_SUSPENDED)
|
||||
goto not_prepared;
|
||||
|
||||
/* NULL and READY are the same */
|
||||
|
|
Loading…
Reference in a new issue