From: Sebastian Dröge Date: Thu, 7 Oct 2021 10:00:10 +0000 (+0300) Subject: rtsp-media: Unprepare suspended medias too X-Git-Tag: 1.19.3~328 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14d636b224f3f00779ccb165750c29f8b69eb34d;p=platform%2Fupstream%2Fgstreamer.git rtsp-media: Unprepare suspended medias too Previously suspended medias immediately reached the UNPREPARED state without going through the media's unprepare() vfunc. This didn't allow the media subclass to do any additional cleanup, and for example the shutdown-eos property of GstRTSPMedia was ignored. Part-of: --- diff --git a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c index 0ca0d9f..f78355e 100644 --- a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c +++ b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-media.c @@ -4108,7 +4108,8 @@ gst_rtsp_media_unprepare (GstRTSPMedia * media) set_target_state (media, GST_STATE_NULL, FALSE); success = TRUE; - if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARED) { + if (priv->status == GST_RTSP_MEDIA_STATUS_PREPARED + || priv->status == GST_RTSP_MEDIA_STATUS_SUSPENDED) { GstRTSPMediaClass *klass; klass = GST_RTSP_MEDIA_GET_CLASS (media);