diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-06-01 19:40:11 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-06-01 19:41:21 +0200 |
commit | bf07b52477b76bb10200f366f800a5bc1dc097ed (patch) | |
tree | 4c893236ad281fe93860955477fb980aa48725b3 /sys | |
parent | 2e0395aa59054c5f0cd4fdca0400348f57e69fe9 (diff) | |
download | gstreamer-plugins-bad-bf07b52477b76bb10200f366f800a5bc1dc097ed.tar.gz |
amc: Give marginal rank to codecs that start with OMX.Exynos.
OMX.Exynos. codecs are existing on some devices like the
Galaxy S5 mini, and cause random crashes (of the device,
not the app!) and generally misbehave. That specific device
has other codecs that work with a different name, but let's
just give them marginal rank in case there are devices that
have no other codecs and these are actually the only working
ones
Diffstat (limited to 'sys')
-rw-r--r-- | sys/androidmedia/gstamc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 2b8d494e2..b68f3f0ad 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -3144,6 +3144,16 @@ register_codecs (GstPlugin * plugin) if (g_str_has_prefix (codec_info->name, "OMX.google") || g_str_has_suffix (codec_info->name, ".sw.dec")) { rank = GST_RANK_SECONDARY; + } else if (g_str_has_prefix (codec_info->name, "OMX.Exynos.")) { + /* OMX.Exynos. codecs are existing on some devices like the + * Galaxy S5 mini, and cause random crashes (of the device, + * not the app!) and generally misbehave. That specific device + * has other codecs that work with a different name, but let's + * just give them marginal rank in case there are devices that + * have no other codecs and these are actually the only working + * ones + */ + rank = GST_RANK_MARGINAL; } else if (g_str_has_prefix (codec_info->name, "OMX.")) { rank = GST_RANK_PRIMARY; } else { |