mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
audioencoder: flush encoder in transition PAUSED->READY
https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
e7cf4c058d
commit
2dcdd13512
1 changed files with 8 additions and 0 deletions
|
@ -530,6 +530,14 @@ gst_audio_encoder_change_state (GstElement * element, GstStateChange transition)
|
||||||
if (!klass->open (enc))
|
if (!klass->open (enc))
|
||||||
goto open_failed;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue