mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
7013a58874
commit
6cfdeb7423
1 changed files with 3 additions and 1 deletions
|
@ -2410,7 +2410,9 @@ gst_video_encoder_finish_frame (GstVideoEncoder * encoder,
|
||||||
GST_OBJECT_UNLOCK (encoder);
|
GST_OBJECT_UNLOCK (encoder);
|
||||||
|
|
||||||
if (G_UNLIKELY (send_headers))
|
if (G_UNLIKELY (send_headers))
|
||||||
gst_video_encoder_send_header_unlocked (encoder, &discont);
|
priv->new_headers = TRUE;
|
||||||
|
|
||||||
|
gst_video_encoder_send_header_unlocked (encoder, &discont);
|
||||||
|
|
||||||
if (G_UNLIKELY (discont)) {
|
if (G_UNLIKELY (discont)) {
|
||||||
GST_LOG_OBJECT (encoder, "marking discont");
|
GST_LOG_OBJECT (encoder, "marking discont");
|
||||||
|
|
Loading…
Reference in a new issue