Loading media/bufferpool/2.0/AccessorImpl.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ bool contains(std::map<T, std::set<U>> *mapOfSet, T key, U value) { } #ifdef __ANDROID_VNDK__ static constexpr uint32_t kSeqIdVndkBit = 1 << 31; static constexpr uint32_t kSeqIdVndkBit = 1U << 31; #else static constexpr uint32_t kSeqIdVndkBit = 0; #endif Loading media/codec2/components/avc/C2SoftAvcDec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -549,7 +549,7 @@ bool C2SoftAvcDec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading media/codec2/components/hevc/C2SoftHevcDec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,7 @@ bool C2SoftHevcDec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading media/codec2/components/mpeg2/C2SoftMpeg2Dec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -618,7 +618,7 @@ bool C2SoftMpeg2Dec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading media/libaaudio/src/client/AudioStreamInternal.cpp +18 −2 Original line number Diff line number Diff line Loading @@ -354,6 +354,12 @@ aaudio_result_t AudioStreamInternal::requestStart() drainTimestampsFromService(); aaudio_result_t result = mServiceInterface.startStream(mServiceStreamHandle); if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); // Stealing was added in R. Coerce result to improve backward compatibility. result = AAUDIO_ERROR_DISCONNECTED; setState(AAUDIO_STREAM_STATE_DISCONNECTED); } startTime = AudioClock::getNanoseconds(); mClockModel.start(startTime); Loading Loading @@ -397,7 +403,12 @@ aaudio_result_t AudioStreamInternal::stopCallback() if (isDataCallbackSet() && (isActive() || getState() == AAUDIO_STREAM_STATE_DISCONNECTED)) { mCallbackEnabled.store(false); return joinThread(NULL); // may temporarily unlock mStreamLock aaudio_result_t result = joinThread(NULL); // may temporarily unlock mStreamLock if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); result = AAUDIO_OK; } return result; } else { return AAUDIO_OK; } Loading Loading @@ -427,7 +438,12 @@ aaudio_result_t AudioStreamInternal::requestStop() { setState(AAUDIO_STREAM_STATE_STOPPING); mAtomicInternalTimestamp.clear(); return mServiceInterface.stopStream(mServiceStreamHandle); result = mServiceInterface.stopStream(mServiceStreamHandle); if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); result = AAUDIO_OK; } return result; } aaudio_result_t AudioStreamInternal::registerThread() { Loading Loading
media/bufferpool/2.0/AccessorImpl.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ bool contains(std::map<T, std::set<U>> *mapOfSet, T key, U value) { } #ifdef __ANDROID_VNDK__ static constexpr uint32_t kSeqIdVndkBit = 1 << 31; static constexpr uint32_t kSeqIdVndkBit = 1U << 31; #else static constexpr uint32_t kSeqIdVndkBit = 0; #endif Loading
media/codec2/components/avc/C2SoftAvcDec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -549,7 +549,7 @@ bool C2SoftAvcDec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading
media/codec2/components/hevc/C2SoftHevcDec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,7 @@ bool C2SoftHevcDec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading
media/codec2/components/mpeg2/C2SoftMpeg2Dec.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -618,7 +618,7 @@ bool C2SoftMpeg2Dec::setDecodeArgs(ivd_video_decode_ip_t *ps_decode_ip, ps_decode_ip->s_out_buffer.u4_min_out_buf_size[1] = chromaSize; ps_decode_ip->s_out_buffer.u4_min_out_buf_size[2] = chromaSize; if (outBuffer) { if (outBuffer->width() < displayStride || outBuffer->height() < displayHeight) { if (outBuffer->height() < displayHeight) { ALOGE("Output buffer too small: provided (%dx%d) required (%ux%u)", outBuffer->width(), outBuffer->height(), displayStride, displayHeight); return false; Loading
media/libaaudio/src/client/AudioStreamInternal.cpp +18 −2 Original line number Diff line number Diff line Loading @@ -354,6 +354,12 @@ aaudio_result_t AudioStreamInternal::requestStart() drainTimestampsFromService(); aaudio_result_t result = mServiceInterface.startStream(mServiceStreamHandle); if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); // Stealing was added in R. Coerce result to improve backward compatibility. result = AAUDIO_ERROR_DISCONNECTED; setState(AAUDIO_STREAM_STATE_DISCONNECTED); } startTime = AudioClock::getNanoseconds(); mClockModel.start(startTime); Loading Loading @@ -397,7 +403,12 @@ aaudio_result_t AudioStreamInternal::stopCallback() if (isDataCallbackSet() && (isActive() || getState() == AAUDIO_STREAM_STATE_DISCONNECTED)) { mCallbackEnabled.store(false); return joinThread(NULL); // may temporarily unlock mStreamLock aaudio_result_t result = joinThread(NULL); // may temporarily unlock mStreamLock if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); result = AAUDIO_OK; } return result; } else { return AAUDIO_OK; } Loading Loading @@ -427,7 +438,12 @@ aaudio_result_t AudioStreamInternal::requestStop() { setState(AAUDIO_STREAM_STATE_STOPPING); mAtomicInternalTimestamp.clear(); return mServiceInterface.stopStream(mServiceStreamHandle); result = mServiceInterface.stopStream(mServiceStreamHandle); if (result == AAUDIO_ERROR_INVALID_HANDLE) { ALOGD("%s() INVALID_HANDLE, stream was probably stolen", __func__); result = AAUDIO_OK; } return result; } aaudio_result_t AudioStreamInternal::registerThread() { Loading