mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
rtsp-media: Also mark receive-only (RECORD) medias as prepared when unsuspending
Previously the status was only changed for other medias. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1058>
This commit is contained in:
parent
c53bdeacf5
commit
55222db66e
1 changed files with 2 additions and 3 deletions
|
@ -4632,9 +4632,8 @@ default_unsuspend (GstRTSPMedia * media)
|
||||||
|
|
||||||
switch (priv->suspend_mode) {
|
switch (priv->suspend_mode) {
|
||||||
case GST_RTSP_SUSPEND_MODE_NONE:
|
case GST_RTSP_SUSPEND_MODE_NONE:
|
||||||
if (gst_rtsp_media_is_receive_only (media))
|
if (!gst_rtsp_media_is_receive_only (media)
|
||||||
break;
|
&& media_streams_blocking (media)) {
|
||||||
if (media_streams_blocking (media)) {
|
|
||||||
g_rec_mutex_unlock (&priv->state_lock);
|
g_rec_mutex_unlock (&priv->state_lock);
|
||||||
if (gst_rtsp_media_get_status (media) == GST_RTSP_MEDIA_STATUS_ERROR) {
|
if (gst_rtsp_media_get_status (media) == GST_RTSP_MEDIA_STATUS_ERROR) {
|
||||||
g_rec_mutex_lock (&priv->state_lock);
|
g_rec_mutex_lock (&priv->state_lock);
|
||||||
|
|
Loading…
Reference in a new issue