mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
videoencoder: flush encoder in transition PAUSED->READY
https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
6627dd3ae3
commit
877664a414
1 changed files with 5 additions and 0 deletions
|
@ -1526,6 +1526,11 @@ gst_video_encoder_change_state (GstElement * element, GstStateChange transition)
|
||||||
if (encoder_class->start && !encoder_class->start (encoder))
|
if (encoder_class->start && !encoder_class->start (encoder))
|
||||||
goto start_failed;
|
goto start_failed;
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue