Loading media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp +9 −14 Original line number Original line Diff line number Diff line Loading @@ -83,13 +83,6 @@ SoftMPEG2::SoftMPEG2( // If input dump is enabled, then open create an empty file // If input dump is enabled, then open create an empty file GENERATE_FILE_NAMES(); GENERATE_FILE_NAMES(); CREATE_DUMP_FILE(mInFile); CREATE_DUMP_FILE(mInFile); if (OK != initDecoder()) { ALOGE("Failed to initialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } } SoftMPEG2::~SoftMPEG2() { SoftMPEG2::~SoftMPEG2() { Loading Loading @@ -460,8 +453,6 @@ status_t SoftMPEG2::reInitDecoder() { if (OK != ret) { if (OK != ret) { ALOGE("Failed to initialize decoder"); ALOGE("Failed to initialize decoder"); deInitDecoder(); deInitDecoder(); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return ret; return ret; } } mSignalledError = false; mSignalledError = false; Loading Loading @@ -610,6 +601,15 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { return; return; } } if (NULL == mCodecCtx) { if (OK != initDecoder()) { ALOGE("Failed to initialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); Loading Loading @@ -664,9 +664,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { if (OK != reInitDecoder()) { if (OK != reInitDecoder()) { ALOGE("Failed to reinitialize decoder"); ALOGE("Failed to reinitialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } return; return; } } Loading Loading @@ -742,8 +739,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { if (OK != reInitDecoder()) { if (OK != reInitDecoder()) { ALOGE("Failed to reinitialize decoder"); ALOGE("Failed to reinitialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; return; } } Loading Loading
media/libstagefright/codecs/mpeg2dec/SoftMPEG2.cpp +9 −14 Original line number Original line Diff line number Diff line Loading @@ -83,13 +83,6 @@ SoftMPEG2::SoftMPEG2( // If input dump is enabled, then open create an empty file // If input dump is enabled, then open create an empty file GENERATE_FILE_NAMES(); GENERATE_FILE_NAMES(); CREATE_DUMP_FILE(mInFile); CREATE_DUMP_FILE(mInFile); if (OK != initDecoder()) { ALOGE("Failed to initialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } } SoftMPEG2::~SoftMPEG2() { SoftMPEG2::~SoftMPEG2() { Loading Loading @@ -460,8 +453,6 @@ status_t SoftMPEG2::reInitDecoder() { if (OK != ret) { if (OK != ret) { ALOGE("Failed to initialize decoder"); ALOGE("Failed to initialize decoder"); deInitDecoder(); deInitDecoder(); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return ret; return ret; } } mSignalledError = false; mSignalledError = false; Loading Loading @@ -610,6 +601,15 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { return; return; } } if (NULL == mCodecCtx) { if (OK != initDecoder()) { ALOGE("Failed to initialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); List<BufferInfo *> &outQueue = getPortQueue(kOutputPortIndex); Loading Loading @@ -664,9 +664,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { if (OK != reInitDecoder()) { if (OK != reInitDecoder()) { ALOGE("Failed to reinitialize decoder"); ALOGE("Failed to reinitialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; } } return; return; } } Loading Loading @@ -742,8 +739,6 @@ void SoftMPEG2::onQueueFilled(OMX_U32 portIndex) { if (OK != reInitDecoder()) { if (OK != reInitDecoder()) { ALOGE("Failed to reinitialize decoder"); ALOGE("Failed to reinitialize decoder"); notify(OMX_EventError, OMX_ErrorUnsupportedSetting, 0, NULL); mSignalledError = true; return; return; } } Loading