mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 15:38:53 +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,6 +2410,8 @@ 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))
|
||||||
|
priv->new_headers = TRUE;
|
||||||
|
|
||||||
gst_video_encoder_send_header_unlocked (encoder, &discont);
|
gst_video_encoder_send_header_unlocked (encoder, &discont);
|
||||||
|
|
||||||
if (G_UNLIKELY (discont)) {
|
if (G_UNLIKELY (discont)) {
|
||||||
|
|
Loading…
Reference in a new issue