Revert "videoencoder: flush encoder in transition PAUSED->READY"

This reverts commit 877664a414.
This commit is contained in:
Matthew Waters 2017-10-22 01:00:10 +11:00
parent a81b5a95ba
commit a240880664

View file

@ -1526,11 +1526,6 @@ gst_video_encoder_change_state (GstElement * element, GstStateChange transition)
if (encoder_class->start && !encoder_class->start (encoder))
goto start_failed;
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
GST_VIDEO_ENCODER_STREAM_LOCK (encoder);
gst_video_encoder_flush (encoder);
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
break;
default:
break;
}