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

Commit dba83c1c authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

libstagefright: compile errors

Change-Id: I752d7d73f9c4939160a1ccaefc44ce1f8ffd9982
parent 58202e1d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ static int32_t getColorFormat(const char* colorFormat) {
         "CameraSource::getColorFormat", colorFormat);

    CHECK(!"Unknown color format");
    return -1;
}

CameraSource *CameraSource::Create(const String16 &clientName) {
+6 −1
Original line number Diff line number Diff line
@@ -41,8 +41,13 @@

#include "include/ESDS.h"


#ifndef __predict_false
#define __predict_false(exp) __builtin_expect((exp) != 0, 0)
#endif

#define WARN_UNLESS(condition, message, ...) \
( (CONDITION(condition)) ? false : ({ \
( (__predict_false(condition)) ? false : ({ \
    ALOGW("Condition %s failed "  message, #condition, ##__VA_ARGS__); \
    true; \
}))
+1 −0
Original line number Diff line number Diff line
@@ -817,6 +817,7 @@ static size_t getFrameSize(
            CHECK(!"Should not be here. Unsupported color format.");
            break;
    }
    return 0;
}

status_t OMXCodec::findTargetColorFormat(
+1 −0
Original line number Diff line number Diff line
@@ -382,5 +382,6 @@ android::SoftOMXComponent *createSoftOMXComponent(
    } else {
        CHECK(!"Unknown component");
    }
    return NULL;
}
+1 −0
Original line number Diff line number Diff line
@@ -189,4 +189,5 @@ android::SoftOMXComponent *createSoftOMXComponent(
    } else {
        CHECK(!"Unknown component");
    }
    return NULL;
}