videoencoder: send new headers in finish_frame

If headers have been set by subclass, this headers should be sent
for a first time or on demand with a key-unit
This commit is contained in:
Stéphane Cerveau 2019-09-12 12:07:08 +02:00 committed by GStreamer Merge Bot
parent 7013a58874
commit 6cfdeb7423

View file

@ -2410,6 +2410,8 @@ gst_video_encoder_finish_frame (GstVideoEncoder * encoder,
GST_OBJECT_UNLOCK (encoder);
if (G_UNLIKELY (send_headers))
priv->new_headers = TRUE;
gst_video_encoder_send_header_unlocked (encoder, &discont);
if (G_UNLIKELY (discont)) {