[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    [1.2] gst-plugins-bad: androidmedia: fix rank for more software decoders
From:       ylatuya () kemper ! freedesktop ! org (Andoni Morales Alastruey)
Date:       2013-10-31 15:39:37
Message-ID: 20131031153937.583AE76562 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-plugins-bad
Branch: 1.2
Commit: 9593ae52983f464ad5d7434ded6ac60934defd8a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=9593ae52983f464ad5d7434ded6ac60934defd8a


Author: Andoni Morales Alastruey <ylatuya@gmail.com>
Date:   Wed Oct 30 18:25:50 2013 +0100

androidmedia: fix rank for more software decoders

In Galaxy S4 the codecs list contains some OMX.SEC.foo.sw.dec
as software decoders

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

---

 sys/androidmedia/gstamc.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c
index 18743a3..e7159f0 100644
--- a/sys/androidmedia/gstamc.c
+++ b/sys/androidmedia/gstamc.c
@@ -2775,8 +2775,10 @@ register_codecs (GstPlugin * plugin)
           codec_info->name);
 
       /* Give the Google software codec a secondary rank,
-       * everything else is likely a hardware codec */
-      if (g_str_has_prefix (codec_info->name, "OMX.google"))
+       * everything else is likely a hardware codec, except
+       * OMX.SEC.*.sw.dec (as seen in Galaxy S4) */
+      if (g_str_has_prefix (codec_info->name, "OMX.google") ||
+          g_str_has_suffix (codec_info->name, ".sw.dec"))
         rank = GST_RANK_SECONDARY;
       else
         rank = GST_RANK_PRIMARY;

_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic