media: also do state change in suspended state

This commit is contained in:
Ognyan Tonchev 2013-11-29 15:50:23 +01:00 committed by Wim Taymans
parent 53859ac34b
commit 3b4894c4f1

View file

@ -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 */