Loading media/codec2/sfplugin/CCodec.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -1803,9 +1803,16 @@ void CCodec::start() { if (tryAndReportOnError(setRunning) != OK) { return; } err2 = mChannel->requestInitialInputBuffers(); if (err2 != OK) { ALOGE("Initial request for Input Buffers failed"); mCallback->onError(err2,ACTION_CODE_FATAL); return; } mCallback->onStartCompleted(); (void)mChannel->requestInitialInputBuffers(); } void CCodec::initiateShutdown(bool keepComponentAllocated) { Loading media/libstagefright/MediaCodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1418,9 +1418,14 @@ status_t MediaCodec::init(const AString &name) { if (mIsVideo) { // video codec needs dedicated looper if (mCodecLooper == NULL) { status_t err = OK; mCodecLooper = new ALooper; mCodecLooper->setName("CodecLooper"); mCodecLooper->start(false, false, ANDROID_PRIORITY_AUDIO); err = mCodecLooper->start(false, false, ANDROID_PRIORITY_AUDIO); if (OK != err) { ALOGE("Codec Looper failed to start"); return err; } } mCodecLooper->registerHandler(mCodec); Loading Loading
media/codec2/sfplugin/CCodec.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -1803,9 +1803,16 @@ void CCodec::start() { if (tryAndReportOnError(setRunning) != OK) { return; } err2 = mChannel->requestInitialInputBuffers(); if (err2 != OK) { ALOGE("Initial request for Input Buffers failed"); mCallback->onError(err2,ACTION_CODE_FATAL); return; } mCallback->onStartCompleted(); (void)mChannel->requestInitialInputBuffers(); } void CCodec::initiateShutdown(bool keepComponentAllocated) { Loading
media/libstagefright/MediaCodec.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -1418,9 +1418,14 @@ status_t MediaCodec::init(const AString &name) { if (mIsVideo) { // video codec needs dedicated looper if (mCodecLooper == NULL) { status_t err = OK; mCodecLooper = new ALooper; mCodecLooper->setName("CodecLooper"); mCodecLooper->start(false, false, ANDROID_PRIORITY_AUDIO); err = mCodecLooper->start(false, false, ANDROID_PRIORITY_AUDIO); if (OK != err) { ALOGE("Codec Looper failed to start"); return err; } } mCodecLooper->registerHandler(mCodec); Loading