Revert "videodecoder: flush decoder in transition PAUSED->READY"
authorMatthew Waters <matthew@centricular.com>
Sat, 21 Oct 2017 14:00:08 +0000 (01:00 +1100)
committerMatthew Waters <matthew@centricular.com>
Sat, 21 Oct 2017 14:00:08 +0000 (01:00 +1100)
This reverts commit 6e9edc3031935ce8d6640d9774a7c093d20d4366.

gst-libs/gst/video/gstvideodecoder.c

index b46e4de7c6f723bec590a596308868b5f53426b4..4d20a0efce87b5b702ef483520ff1894cf31207d 100644 (file)
@@ -2494,11 +2494,6 @@ gst_video_decoder_change_state (GstElement * element, GstStateChange transition)
       if (decoder_class->start && !decoder_class->start (decoder))
         goto start_failed;
       break;
-    case GST_STATE_CHANGE_PAUSED_TO_READY:
-      GST_VIDEO_DECODER_STREAM_LOCK (decoder);
-      gst_video_decoder_flush (decoder, TRUE);
-      GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
-      break;
     default:
       break;
   }