Loading media/libmedia/IMediaHTTPConnection.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,14 @@ struct BpMediaHTTPConnection : public BpInterface<IMediaHTTPConnection> { ALOGE("got %zu, but memory has %zu", len, mMemory->size()); return ERROR_OUT_OF_RANGE; } if(buffer == NULL) { ALOGE("readAt got a NULL buffer"); return UNKNOWN_ERROR; } if (mMemory->pointer() == NULL) { ALOGE("readAt got a NULL mMemory->pointer()"); return UNKNOWN_ERROR; } memcpy(buffer, mMemory->pointer(), len); Loading Loading
media/libmedia/IMediaHTTPConnection.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,14 @@ struct BpMediaHTTPConnection : public BpInterface<IMediaHTTPConnection> { ALOGE("got %zu, but memory has %zu", len, mMemory->size()); return ERROR_OUT_OF_RANGE; } if(buffer == NULL) { ALOGE("readAt got a NULL buffer"); return UNKNOWN_ERROR; } if (mMemory->pointer() == NULL) { ALOGE("readAt got a NULL mMemory->pointer()"); return UNKNOWN_ERROR; } memcpy(buffer, mMemory->pointer(), len); Loading