mfreadwrite: Forward some source events to async reader callback.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Nikolay Sivov 2020-03-26 16:16:29 +03:00 committed by Alexandre Julliard
parent 1d047928b1
commit 88299b0edc
1 changed files with 12 additions and 0 deletions

View File

@ -478,6 +478,18 @@ static HRESULT WINAPI source_reader_source_events_callback_Invoke(IMFAsyncCallba
case MESourceStopped:
hr = source_reader_source_state_handler(reader, event_type);
break;
case MEBufferingStarted:
case MEBufferingStopped:
case MEConnectStart:
case MEConnectEnd:
case MEExtendedType:
case MESourceCharacteristicsChanged:
case MESourceMetadataChanged:
case MEContentProtectionMetadata:
case MEDeviceThermalStateChanged:
if (reader->async_callback)
IMFSourceReaderCallback_OnEvent(reader->async_callback, MF_SOURCE_READER_MEDIASOURCE, event);
break;
default:
;
}