Loading media/libstagefright/ACodec.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -698,7 +698,7 @@ status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) { for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { sp<IMemory> mem = mDealer[portIndex]->allocate(def.nBufferSize); if (mem.get() == NULL) { if (mem == NULL || mem->pointer() == NULL) { return NO_MEMORY; } Loading Loading @@ -990,7 +990,7 @@ status_t ACodec::allocateOutputMetaDataBuffers() { sp<IMemory> mem = mDealer[kPortIndexOutput]->allocate( sizeof(struct VideoDecoderOutputMetaData)); if (mem.get() == NULL) { if (mem == NULL || mem->pointer() == NULL) { return NO_MEMORY; } info.mData = new ABuffer(mem->pointer(), mem->size()); Loading Loading
media/libstagefright/ACodec.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -698,7 +698,7 @@ status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) { for (OMX_U32 i = 0; i < def.nBufferCountActual; ++i) { sp<IMemory> mem = mDealer[portIndex]->allocate(def.nBufferSize); if (mem.get() == NULL) { if (mem == NULL || mem->pointer() == NULL) { return NO_MEMORY; } Loading Loading @@ -990,7 +990,7 @@ status_t ACodec::allocateOutputMetaDataBuffers() { sp<IMemory> mem = mDealer[kPortIndexOutput]->allocate( sizeof(struct VideoDecoderOutputMetaData)); if (mem.get() == NULL) { if (mem == NULL || mem->pointer() == NULL) { return NO_MEMORY; } info.mData = new ABuffer(mem->pointer(), mem->size()); Loading