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

This reverts commit 2dcdd13512.
This commit is contained in:
Matthew Waters 2017-10-22 01:00:06 +11:00
parent b8369ba20d
commit 06aba17d19

View file

@ -530,14 +530,6 @@ gst_audio_encoder_change_state (GstElement * element, GstStateChange transition)
if (!klass->open (enc))
goto open_failed;
}
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
if (klass->flush) {
GST_AUDIO_ENCODER_STREAM_LOCK (enc);
klass->flush (enc);
GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
}
break;
default:
break;
}