media: no need to unlock, unprepare does that when needed

This commit is contained in:
Wim Taymans 2012-10-26 15:19:23 +02:00
parent 348b7f9c21
commit 84b7cf1590

View file

@ -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)