Commit 03d6a4e2 authored by Martin Storsjö's avatar Martin Storsjö

omxil: Ignore all "secure"/DRM codecs

We can't use any of them since they don't output plain YUV data
but require using direct rendering.

This simplifies the condition and possibly also catches other cases
where it would be needed.

The case where it was added was for a device where the codec ending
with .secure was listed before the normal one. This kind of codec
is available on many other devices as well, but they're normally listed
only after the normal ones so we never pick them.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 783ebff1
...@@ -993,8 +993,9 @@ loaded: ...@@ -993,8 +993,9 @@ loaded:
* has got a working OMX.qcom.video.decoder.avc instead though. */ * has got a working OMX.qcom.video.decoder.avc instead though. */
if (!strncmp(p_sys->ppsz_components[i], "OMX.ARICENT.", 12)) if (!strncmp(p_sys->ppsz_components[i], "OMX.ARICENT.", 12))
continue; continue;
/* Some nVidia codec with DRM */ /* Codecs with DRM, that don't output plain YUV data but only
if (!strncmp(p_sys->ppsz_components[i], "OMX.Nvidia.h264.decode.secure", 29)) * support direct rendering where the output can't be intercepted. */
if (strstr(p_sys->ppsz_components[i], ".secure"))
continue; continue;
/* Use VC1 decoder for WMV3 for now */ /* Use VC1 decoder for WMV3 for now */
if (!strcmp(p_sys->ppsz_components[i], "OMX.SEC.WMV.Decoder")) if (!strcmp(p_sys->ppsz_components[i], "OMX.SEC.WMV.Decoder"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment