From e671207115fac3914134c61b336d5fa0242c68ca Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Tue, 26 Jun 2012 10:56:14 -0700 Subject: Make sure codec names and corresponding quirks are returned together. Previously they were returned in separate vectors and only one of them was sorted if software codecs were preferred, leaving the quirks no longer matching the codec name at the same index. Change-Id: Id3f1e6f9f7f8c9cc4b6ebfb86a203b4d59de8604 related-to-bug: 6737884 --- include/media/stagefright/OMXCodec.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index c57e2a5..bb9e595 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -102,13 +102,17 @@ struct OMXCodec : public MediaSource, kOutputBuffersAreUnreadable = 4096, }; + struct CodecNameAndQuirks { + String8 mName; + uint32_t mQuirks; + }; + // for use by ACodec static void findMatchingCodecs( const char *mime, bool createEncoder, const char *matchComponentName, uint32_t flags, - Vector *matchingCodecs, - Vector *matchingCodecQuirks = NULL); + Vector *matchingCodecNamesAndQuirks); static uint32_t getComponentQuirks( const MediaCodecList *list, size_t index); -- cgit v1.1