mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
vtenc: flush encoder on stop
https://bugzilla.gnome.org/show_bug.cgi?id=787311
This commit is contained in:
parent
ad05728351
commit
889e735675
1 changed files with 4 additions and 0 deletions
|
@ -560,6 +560,10 @@ gst_vtenc_stop (GstVideoEncoder * enc)
|
|||
{
|
||||
GstVTEnc *self = GST_VTENC_CAST (enc);
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_LOCK (self);
|
||||
gst_vtenc_flush (self);
|
||||
GST_VIDEO_ENCODER_STREAM_UNLOCK (self);
|
||||
|
||||
GST_OBJECT_LOCK (self);
|
||||
gst_vtenc_destroy_session (self, &self->session);
|
||||
GST_OBJECT_UNLOCK (self);
|
||||
|
|
Loading…
Reference in a new issue