From b55b46a7f29702db3c4bb0e5f53a66818f29909a Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 1 Sep 2016 18:16:16 +0200 Subject: Changes to meta-renesas for building with YP 2.1.1 'krogoth' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Notable changes: - We drop old appends (libgcc_4.8.bbappend, qemu_%.bbappends, gtk+_2.24.%.bbappend) - All gstreamer1.0_1.2.3 related recipes are now in meta-reneas and have been heavily massaged to work with YP 2.1.1 . - systemd needs a patch due to the old kernel - linux-libc-headers needed a patch TODO: - Test and fix Signed-off-by: Jan-Simon Möller --- ...-don-t-start-the-output-thread-before-set.patch | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 common/recipes-multimedia/gstreamer/gstreamer1.0-omx/0010-omxvideodec-don-t-start-the-output-thread-before-set.patch (limited to 'common/recipes-multimedia/gstreamer/gstreamer1.0-omx/0010-omxvideodec-don-t-start-the-output-thread-before-set.patch') diff --git a/common/recipes-multimedia/gstreamer/gstreamer1.0-omx/0010-omxvideodec-don-t-start-the-output-thread-before-set.patch b/common/recipes-multimedia/gstreamer/gstreamer1.0-omx/0010-omxvideodec-don-t-start-the-output-thread-before-set.patch new file mode 100644 index 0000000..d9bb319 --- /dev/null +++ b/common/recipes-multimedia/gstreamer/gstreamer1.0-omx/0010-omxvideodec-don-t-start-the-output-thread-before-set.patch @@ -0,0 +1,74 @@ +From 51d51503f9a1bd52e32d08a81b1ab9b2c0996161 Mon Sep 17 00:00:00 2001 +From: Kazunori Kobayashi +Date: Tue, 25 Jun 2013 19:23:28 +0900 +Subject: [PATCH 10/14] omxvideodec: don't start the output thread before + set_format has been done + +reset() method is invoked before set_format() has been invoked at +the initialization. Thus the output thread is launched before output +buffers haven't been populated into the component with FillThisBuffer() yet. +This might cause a malfunction of decoding. +To resolve the above issue, the output thread invocation in the +reset() method is restricted before the processing necessary to +activate the component with set_format_done flag. +--- + omx/gstomxvideodec.c | 8 ++++++-- + omx/gstomxvideodec.h | 2 ++ + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c +index e8c276b..2beaac6 100644 +--- a/omx/gstomxvideodec.c ++++ b/omx/gstomxvideodec.c +@@ -735,6 +735,7 @@ gst_omx_video_dec_open (GstVideoDecoder * decoder) + klass->cdata.component_name, klass->cdata.component_role, + klass->cdata.hacks); + self->started = FALSE; ++ self->set_format_done = FALSE; + + if (!self->dec) + return FALSE; +@@ -819,6 +820,7 @@ gst_omx_video_dec_close (GstVideoDecoder * decoder) + self->dec = NULL; + + self->started = FALSE; ++ self->set_format_done = FALSE; + + GST_DEBUG_OBJECT (self, "Closed decoder"); + +@@ -2158,6 +2160,7 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder, + self->downstream_flow_ret = GST_FLOW_OK; + gst_pad_start_task (GST_VIDEO_DECODER_SRC_PAD (self), + (GstTaskFunction) gst_omx_video_dec_loop, decoder, NULL); ++ self->set_format_done = TRUE; + + return TRUE; + } +@@ -2192,8 +2195,9 @@ gst_omx_video_dec_reset (GstVideoDecoder * decoder, gboolean hard) + self->last_upstream_ts = 0; + self->eos = FALSE; + self->downstream_flow_ret = GST_FLOW_OK; +- gst_pad_start_task (GST_VIDEO_DECODER_SRC_PAD (self), +- (GstTaskFunction) gst_omx_video_dec_loop, decoder, NULL); ++ if (self->set_format_done) ++ gst_pad_start_task (GST_VIDEO_DECODER_SRC_PAD (self), ++ (GstTaskFunction) gst_omx_video_dec_loop, decoder, NULL); + + GST_DEBUG_OBJECT (self, "Reset decoder"); + +diff --git a/omx/gstomxvideodec.h b/omx/gstomxvideodec.h +index 8f0f98b..747bc36 100644 +--- a/omx/gstomxvideodec.h ++++ b/omx/gstomxvideodec.h +@@ -62,6 +62,8 @@ struct _GstOMXVideoDec + * the first buffer */ + gboolean started; + ++ gboolean set_format_done; ++ + GstClockTime last_upstream_ts; + + /* Draining state */ +-- +1.8.1.2 + -- cgit 1.2.3-korg