Revert "videodecoder: flush decoder in transition PAUSED->READY"

This reverts commit 6e9edc3031.
This commit is contained in:
Matthew Waters 2017-10-22 01:00:08 +11:00
parent 06aba17d19
commit a81b5a95ba

View 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;
}