mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
omxh264enc: Don't let baseclass finish frames for SPS/PPS buffers
Otherwise we a) send them twice, and b) finish a frame for something that does not even include a frame. https://bugzilla.gnome.org/show_bug.cgi?id=726669
This commit is contained in:
parent
b496a6d6f2
commit
6617d6f577
1 changed files with 5 additions and 0 deletions
|
@ -538,6 +538,11 @@ gst_omx_h264_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
|
||||||
gst_buffer_unmap (hdrs, &map);
|
gst_buffer_unmap (hdrs, &map);
|
||||||
l = g_list_append (l, hdrs);
|
l = g_list_append (l, hdrs);
|
||||||
gst_video_encoder_set_headers (GST_VIDEO_ENCODER (self), l);
|
gst_video_encoder_set_headers (GST_VIDEO_ENCODER (self), l);
|
||||||
|
|
||||||
|
if (frame)
|
||||||
|
gst_video_codec_frame_unref (frame);
|
||||||
|
|
||||||
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue