diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-06-24 11:11:28 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-24 11:11:28 +0200 |
commit | 6617d6f577e72cabbc299f68b6e92baefd6b7397 (patch) | |
tree | 1f97708fb6bc7f28bda5a770af992777b857d1a8 | |
parent | b496a6d6f252cc8b7db5872398db96beb6faa176 (diff) | |
download | gst-omx-6617d6f577e72cabbc299f68b6e92baefd6b7397.tar.gz |
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
-rw-r--r-- | omx/gstomxh264enc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index 3c49cd9..94ba2dd 100644 --- a/omx/gstomxh264enc.c +++ b/omx/gstomxh264enc.c @@ -538,6 +538,11 @@ gst_omx_h264_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port, gst_buffer_unmap (hdrs, &map); l = g_list_append (l, hdrs); gst_video_encoder_set_headers (GST_VIDEO_ENCODER (self), l); + + if (frame) + gst_video_codec_frame_unref (frame); + + return GST_FLOW_OK; } } |