From 2541c5af179bc9e02ad5160ab773c53ff4086611 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 2 Jun 2011 13:25:12 -0700 Subject: [PATCH] Don't advertise the (old-style) software decoders unless they're actually present. Change-Id: I3753a21e1a7de86432c9c087be9d52028e3a1e1b --- media/libstagefright/OMXCodec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 63397101be9d4..e71f16cb1f996 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -4256,9 +4256,11 @@ status_t QueryCodecs( if (strncmp(componentName, "OMX.", 4)) { // Not an OpenMax component but a software codec. +#if HAVE_SOFTWARE_DECODERS results->push(); CodecCapabilities *caps = &results->editItemAt(results->size() - 1); caps->mComponentName = componentName; +#endif continue; }