Loading media/libstagefright/include/OMXNodeInstance.h +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ class IOMXObserver; struct OMXMaster; class GraphicBufferSource; status_t StatusFromOMXError(OMX_ERRORTYPE err); struct OMXNodeInstance { OMXNodeInstance( OMX *owner, const sp<IOMXObserver> &observer, const char *name); Loading media/libstagefright/omx/OMX.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include "OMXMaster.h" #include <OMX_AsString.h> #include <OMX_Component.h> namespace android { Loading Loading @@ -233,11 +234,11 @@ status_t OMX::allocateNode( instance, &handle); if (err != OMX_ErrorNone) { ALOGE("FAILED to allocate omx component '%s'", name); ALOGE("FAILED to allocate omx component '%s' err=%s(%#x)", name, asString(err), err); instance->onGetHandleFailed(); return UNKNOWN_ERROR; return StatusFromOMXError(err); } *node = makeNodeID(instance); Loading media/libstagefright/omx/OMXNodeInstance.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -220,13 +220,15 @@ OMX::node_id OMXNodeInstance::nodeID() { return mNodeID; } static status_t StatusFromOMXError(OMX_ERRORTYPE err) { status_t StatusFromOMXError(OMX_ERRORTYPE err) { switch (err) { case OMX_ErrorNone: return OK; case OMX_ErrorUnsupportedSetting: case OMX_ErrorUnsupportedIndex: return ERROR_UNSUPPORTED; case OMX_ErrorInsufficientResources: return NO_MEMORY; default: return UNKNOWN_ERROR; } Loading Loading
media/libstagefright/include/OMXNodeInstance.h +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ class IOMXObserver; struct OMXMaster; class GraphicBufferSource; status_t StatusFromOMXError(OMX_ERRORTYPE err); struct OMXNodeInstance { OMXNodeInstance( OMX *owner, const sp<IOMXObserver> &observer, const char *name); Loading
media/libstagefright/omx/OMX.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ #include "OMXMaster.h" #include <OMX_AsString.h> #include <OMX_Component.h> namespace android { Loading Loading @@ -233,11 +234,11 @@ status_t OMX::allocateNode( instance, &handle); if (err != OMX_ErrorNone) { ALOGE("FAILED to allocate omx component '%s'", name); ALOGE("FAILED to allocate omx component '%s' err=%s(%#x)", name, asString(err), err); instance->onGetHandleFailed(); return UNKNOWN_ERROR; return StatusFromOMXError(err); } *node = makeNodeID(instance); Loading
media/libstagefright/omx/OMXNodeInstance.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -220,13 +220,15 @@ OMX::node_id OMXNodeInstance::nodeID() { return mNodeID; } static status_t StatusFromOMXError(OMX_ERRORTYPE err) { status_t StatusFromOMXError(OMX_ERRORTYPE err) { switch (err) { case OMX_ErrorNone: return OK; case OMX_ErrorUnsupportedSetting: case OMX_ErrorUnsupportedIndex: return ERROR_UNSUPPORTED; case OMX_ErrorInsufficientResources: return NO_MEMORY; default: return UNKNOWN_ERROR; } Loading