From 3db75118dd642022f25dcbbfd5670c8418cad355 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Dec 2011 14:26:48 +0100 Subject: [PATCH] omxvideoenc: Remove workaround for basevideocodec bug --- omx/gstomxvideoenc.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 04a41f6..73e20e9 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -861,7 +861,6 @@ gst_omx_video_enc_loop (GstOMXVideoEnc * self) g_assert (acq_return == GST_OMX_ACQUIRE_BUFFER_OK); if (buf) { - GST_DEBUG_OBJECT (self, "Handling buffer: 0x%08x %lu", buf->omx_buf->nFlags, buf->omx_buf->nTimeStamp); @@ -1055,16 +1054,6 @@ gst_omx_video_enc_set_format (GstBaseVideoEncoder * encoder, if (needs_disable) { gst_omx_video_enc_drain (self); - /* FIXME: Workaround for - * https://bugzilla.gnome.org/show_bug.cgi?id=654529 - * - * This is always called with GST_BASE_VIDEO_CODEC_STREAM_LOCK - */ - g_list_foreach (GST_BASE_VIDEO_CODEC (self)->frames, - (GFunc) gst_base_video_codec_free_frame, NULL); - g_list_free (GST_BASE_VIDEO_CODEC (self)->frames); - GST_BASE_VIDEO_CODEC (self)->frames = NULL; - if (gst_omx_port_manual_reconfigure (self->in_port, TRUE) != OMX_ErrorNone) return FALSE; if (gst_omx_port_set_enabled (self->in_port, FALSE) != OMX_ErrorNone) @@ -1165,16 +1154,6 @@ gst_omx_video_enc_reset (GstBaseVideoEncoder * encoder) gst_omx_video_enc_drain (self); - /* FIXME: Workaround for - * https://bugzilla.gnome.org/show_bug.cgi?id=654529 - * - * This is always called with GST_BASE_VIDEO_CODEC_STREAM_LOCK - */ - g_list_foreach (GST_BASE_VIDEO_CODEC (self)->frames, - (GFunc) gst_base_video_codec_free_frame, NULL); - g_list_free (GST_BASE_VIDEO_CODEC (self)->frames); - GST_BASE_VIDEO_CODEC (self)->frames = NULL; - gst_omx_port_set_flushing (self->in_port, TRUE); gst_omx_port_set_flushing (self->out_port, TRUE); -- 2.7.4