Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions c2_components/src/mfx_c2_decoder_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1795,6 +1795,16 @@ mfxStatus MfxC2DecoderComponent::DecodeFrame(mfxBitstream *bs, MfxC2FrameOut&& f
++m_uSyncedPointsCount;
}
}
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is value returned by mfx_sts?

ALOGE("Null surface_out after decode, notify all pending works");
{
std::lock_guard<std::mutex> lock(m_pendingWorksMutex);
auto it = m_pendingWorks.begin();
while (it != m_pendingWorks.end()) {
NotifyWorkDone(std::move(it->second), C2_NOT_FOUND);
it = m_pendingWorks.erase(it);
}
}
}
} else if (MFX_ERR_INCOMPATIBLE_VIDEO_PARAM == mfx_sts) {
MFX_DEBUG_TRACE_MSG("MFX_ERR_INCOMPATIBLE_VIDEO_PARAM: resolution was changed");
Expand Down