public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add patches for gstreamer1.4
@ 2014-12-29  9:15 Zidan Wang
  2014-12-29  9:15 ` [PATCH 1/2] gstreamer1.0-plugins-base: Add taglist-not-send-to-down-stream-if-all-the-frame-cor.patch Zidan Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Zidan Wang @ 2014-12-29  9:15 UTC (permalink / raw)
  To: openembedded-core

Add patches to gstreamer1.0-plugins-base and gstreamer1.0-plugins-good.

Zidan Wang (2):
  gstreamer1.0-plugins-base: Add
    taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
  gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch

 ...-send-to-down-stream-if-all-the-frame-cor.patch | 57 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-plugins-base_1.4.1.bb   |  1 +
 .../decrease_asteriskh263_rank.patch               | 25 ++++++++++
 .../gstreamer/gstreamer1.0-plugins-good_1.4.1.bb   |  1 +
 4 files changed, 84 insertions(+)
 create mode 100755 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
 create mode 100755 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] gstreamer1.0-plugins-base: Add taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
  2014-12-29  9:15 [PATCH 0/2] Add patches for gstreamer1.4 Zidan Wang
@ 2014-12-29  9:15 ` Zidan Wang
  2014-12-29  9:15 ` [PATCH 2/2] gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch Zidan Wang
  2014-12-29 12:46 ` [PATCH 0/2] Add patches for gstreamer1.4 Otavio Salvador
  2 siblings, 0 replies; 4+ messages in thread
From: Zidan Wang @ 2014-12-29  9:15 UTC (permalink / raw)
  To: openembedded-core

The patch fix the issue that taglist will not send to downstream when the tack is EOS.

https://bugzilla.gnome.org/show_bug.cgi?id=737246

Signed-off-by: Zidan Wang <b50113@freescale.com>
---
 ...-send-to-down-stream-if-all-the-frame-cor.patch | 57 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-plugins-base_1.4.1.bb   |  1 +
 2 files changed, 58 insertions(+)
 create mode 100755 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
new file mode 100755
index 0000000..51fdc7e
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
@@ -0,0 +1,57 @@
+From 68fa1b1425ad2c5f7c5013d0943153a8a6d0934e Mon Sep 17 00:00:00 2001
+From: Jian Li <lj.qfy.sh@gmail.com>
+Date: Wed, 24 Sep 2014 17:21:02 +0800
+Subject: [PATCH] taglist not send to down stream if all the frame corrupted
+
+https://bugzilla.gnome.org/show_bug.cgi?id=737246
+
+Upstream status: Pending
+
+Signed-off-by: Jian Li <lj.qfy.sh@gmail.com>
+---
+ gst-libs/gst/audio/gstaudiodecoder.c |    9 +++++++++
+ gst-libs/gst/video/gstvideodecoder.c |    8 ++++++++
+ 2 files changed, 17 insertions(+)
+
+diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c
+index 3504678..3d69efe 100644
+--- a/gst-libs/gst/audio/gstaudiodecoder.c
++++ b/gst-libs/gst/audio/gstaudiodecoder.c
+@@ -2083,6 +2083,15 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
+       gst_audio_decoder_drain (dec);
+       GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
+ 
++      /* send taglist if no valid frame is decoded util EOS */
++      if (dec->priv->taglist && dec->priv->taglist_changed) {
++        GST_DEBUG_OBJECT (dec, "codec tag %" GST_PTR_FORMAT, dec->priv->taglist);
++        if (!gst_tag_list_is_empty (dec->priv->taglist))
++          gst_audio_decoder_push_event (dec,
++              gst_event_new_tag (gst_tag_list_ref (dec->priv->taglist)));
++        dec->priv->taglist_changed = FALSE;
++      }
++
+       /* Forward EOS because no buffer or serialized event will come after
+        * EOS and nothing could trigger another _finish_frame() call. */
+       ret = gst_audio_decoder_push_event (dec, event);
+diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c
+index dd8abe3..d9bfe4d 100644
+--- a/gst-libs/gst/video/gstvideodecoder.c
++++ b/gst-libs/gst/video/gstvideodecoder.c
+@@ -1024,6 +1024,14 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
+        * parent class' ::sink_event() until a later time.
+        */
+       forward_immediate = TRUE;
++
++      /* send taglist if no valid frame is decoded util EOS */
++      if (decoder->priv->tags && decoder->priv->tags_changed) {
++        gst_video_decoder_push_event (decoder,
++            gst_event_new_tag (gst_tag_list_ref (decoder->priv->tags)));
++        decoder->priv->tags_changed = FALSE;
++      }
++
+       break;
+     }
+     case GST_EVENT_GAP:
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.4.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.4.1.bb
index 0db42ce..27b8774 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.4.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.4.1.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
 
 SRC_URI += "file://do-not-change-eos-event-to-gap-event-if.patch \
             file://get-caps-from-src-pad-when-query-caps.patch \
+            file://taglist-not-send-to-down-stream-if-all-the-frame-cor.patch \
 "
 
 SRC_URI[md5sum] = "a825628225bd0a58c0df87cdd2a5db91"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch
  2014-12-29  9:15 [PATCH 0/2] Add patches for gstreamer1.4 Zidan Wang
  2014-12-29  9:15 ` [PATCH 1/2] gstreamer1.0-plugins-base: Add taglist-not-send-to-down-stream-if-all-the-frame-cor.patch Zidan Wang
@ 2014-12-29  9:15 ` Zidan Wang
  2014-12-29 12:46 ` [PATCH 0/2] Add patches for gstreamer1.4 Otavio Salvador
  2 siblings, 0 replies; 4+ messages in thread
From: Zidan Wang @ 2014-12-29  9:15 UTC (permalink / raw)
  To: openembedded-core

When streaming H263 stream on RTSP, asteriskh263 will be loaded, but it can't
find this kind of video decoder. So decrease the rank as havn't this kind of
decoder.

https://bugzilla.gnome.org/show_bug.cgi?id=739935

Signed-off-by: Zidan Wang <b50113@freescale.com>
---
 .../decrease_asteriskh263_rank.patch               | 25 ++++++++++++++++++++++
 .../gstreamer/gstreamer1.0-plugins-good_1.4.1.bb   |  1 +
 2 files changed, 26 insertions(+)
 create mode 100755 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch
new file mode 100755
index 0000000..7f94f50
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/decrease_asteriskh263_rank.patch
@@ -0,0 +1,25 @@
+commit d71d74daac8ed54156ed103958ab455c63c72b0e
+Author: Song Bing <b06498@freescale.com>
+Date:   Mon Nov 10 11:25:47 2014 +0800
+
+[asteriskh263] decrease the rank as we havn't this kind of decoder.
+
+Decrease the rank as we havn't this kind of decoder.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=739935
+
+Upstream Status: Pending
+
+Signed-off-by: Song Bing <b06498@freescale.com>
+
+diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c
+index a01fbc8..8fa3194 100644
+--- a/gst/rtp/gstasteriskh263.c
++++ b/gst/rtp/gstasteriskh263.c
+@@ -226,5 +226,5 @@ gboolean
+ gst_asteriskh263_plugin_init (GstPlugin * plugin)
+ {
+   return gst_element_register (plugin, "asteriskh263",
+-      GST_RANK_SECONDARY, GST_TYPE_ASTERISK_H263);
++      GST_RANK_SECONDARY - 1, GST_TYPE_ASTERISK_H263);
+ }
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.4.1.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.4.1.bb
index 441dd51..05798cf 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.4.1.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.4.1.bb
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
                     file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe"
 
 SRC_URI += "file://0001-gstrtpmp4gpay-set-dafault-value-for-MPEG4-without-co.patch \
+            file://decrease_asteriskh263_rank.patch \
 "
 SRC_URI[md5sum] = "eb3a3296b2f6009def1f5a09590ce767"
 SRC_URI[sha256sum] = "8559d4270065b30ed5c49b826e1b7a3a2bd5ee9a340ae745a2ae3f9718e4c637"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Add patches for gstreamer1.4
  2014-12-29  9:15 [PATCH 0/2] Add patches for gstreamer1.4 Zidan Wang
  2014-12-29  9:15 ` [PATCH 1/2] gstreamer1.0-plugins-base: Add taglist-not-send-to-down-stream-if-all-the-frame-cor.patch Zidan Wang
  2014-12-29  9:15 ` [PATCH 2/2] gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch Zidan Wang
@ 2014-12-29 12:46 ` Otavio Salvador
  2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2014-12-29 12:46 UTC (permalink / raw)
  To: Zidan Wang; +Cc: Patches and discussions about the oe-core layer

Hello Zidan,

On Mon, Dec 29, 2014 at 7:15 AM, Zidan Wang <b50113@freescale.com> wrote:
> Add patches to gstreamer1.0-plugins-base and gstreamer1.0-plugins-good.
>
> Zidan Wang (2):
>   gstreamer1.0-plugins-base: Add
>     taglist-not-send-to-down-stream-if-all-the-frame-cor.patch
>   gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch

Thanks for preparing those patches; both are technically correct but a
small improvement can be done.

Your shortlog cite the patch file name you are including. This does
not communicate what you are really doing, and you does a much greater
job describing it in the long commit log. So please, write a proper
shortlog for both patches.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-29 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29  9:15 [PATCH 0/2] Add patches for gstreamer1.4 Zidan Wang
2014-12-29  9:15 ` [PATCH 1/2] gstreamer1.0-plugins-base: Add taglist-not-send-to-down-stream-if-all-the-frame-cor.patch Zidan Wang
2014-12-29  9:15 ` [PATCH 2/2] gstreamer1.0-plugins-good: Add decrease_asteriskh263_rank.patch Zidan Wang
2014-12-29 12:46 ` [PATCH 0/2] Add patches for gstreamer1.4 Otavio Salvador

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox