From 84b7cf1590e1408814412e337a88ae0000b348f4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 26 Oct 2012 15:19:23 +0200 Subject: [PATCH] media: no need to unlock, unprepare does that when needed --- gst/rtsp-server/rtsp-media.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 65c470cc31..bce78d5424 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -1376,9 +1376,6 @@ gst_rtsp_media_set_state (GstRTSPMedia * media, GstState state, switch (state) { case GST_STATE_NULL: - /* unlock the streams so that they follow the state changes from now on */ - unlock_streams (media); - /* fallthrough */ case GST_STATE_PAUSED: /* we're going from PLAYING to PAUSED, READY or NULL, remove */ if (media->target_state == GST_STATE_PLAYING)