Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd3e7901 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 2109e680: am 8c7ab034: Fixing the build, only instantiate the software aac...

am 2109e680: am 8c7ab034: Fixing the build, only instantiate the software aac decoder in full stagefright builds.

Merge commit '2109e680'

* commit '2109e680':
  Fixing the build, only instantiate the software aac decoder in full stagefright builds.
parents 26fa3dcb 2109e680
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -36,6 +36,7 @@ LOCAL_SRC_FILES += \
        WAVExtractor.cpp          \
        WAVExtractor.cpp          \
        string.cpp
        string.cpp


LOCAL_CFLAGS += -DBUILD_WITH_FULL_STAGEFRIGHT
endif
endif


LOCAL_C_INCLUDES:= \
LOCAL_C_INCLUDES:= \
+5 −0
Original line number Original line Diff line number Diff line
@@ -18,7 +18,10 @@
#define LOG_TAG "OMXCodec"
#define LOG_TAG "OMXCodec"
#include <utils/Log.h>
#include <utils/Log.h>


#if BUILD_WITH_FULL_STAGEFRIGHT
#include "include/AACDecoder.h"
#include "include/AACDecoder.h"
#endif

#include "include/ESDS.h"
#include "include/ESDS.h"


#include <binder/IServiceManager.h>
#include <binder/IServiceManager.h>
@@ -285,9 +288,11 @@ sp<MediaSource> OMXCodec::Create(
    bool success = meta->findCString(kKeyMIMEType, &mime);
    bool success = meta->findCString(kKeyMIMEType, &mime);
    CHECK(success);
    CHECK(success);


#if BUILD_WITH_FULL_STAGEFRIGHT
    if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) {
    if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) {
        return new AACDecoder(source);
        return new AACDecoder(source);
    }
    }
#endif


    Vector<String8> matchingCodecs;
    Vector<String8> matchingCodecs;
    findMatchingCodecs(
    findMatchingCodecs(