mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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
This commit is contained in:
parent
ae2231624c
commit
786f5e4f7c
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue