Bug 1839493 - part4 : print log first before error return. r=media-playback-reviewers,padenot

Differential Revision: https://phabricator.services.mozilla.com/D183220
This commit is contained in:
alwu 2023-07-11 20:46:59 +00:00
Родитель 5ad67a6a14
Коммит 4e5c385892
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -333,11 +333,11 @@ IFACEMETHODIMP MFMediaSource::QueueEvent(MediaEventType aType,
REFGUID aExtendedType, HRESULT aStatus, REFGUID aExtendedType, HRESULT aStatus,
const PROPVARIANT* aValue) { const PROPVARIANT* aValue) {
MOZ_ASSERT(mMediaEventQueue); MOZ_ASSERT(mMediaEventQueue);
RETURN_IF_FAILED(mMediaEventQueue->QueueEventParamVar(aType, aExtendedType,
aStatus, aValue));
LOG("Queued event %s", MediaEventTypeToStr(aType)); LOG("Queued event %s", MediaEventTypeToStr(aType));
PROFILER_MARKER_TEXT("MFMediaSource::QueueEvent", MEDIA_PLAYBACK, {}, PROFILER_MARKER_TEXT("MFMediaSource::QueueEvent", MEDIA_PLAYBACK, {},
nsPrintfCString("%s", MediaEventTypeToStr(aType))); nsPrintfCString("%s", MediaEventTypeToStr(aType)));
RETURN_IF_FAILED(mMediaEventQueue->QueueEventParamVar(aType, aExtendedType,
aStatus, aValue));
return S_OK; return S_OK;
} }