On Mon Aug 21 03:55:16 2023 +0000, Zhiyi Zhang wrote:
> > depending on a the player state it's either Stop->Start->Pause or Stop->Start
> We can do something similar for IMFMediaEngine::SetCurrentTime/Ex.
Maybe sources do not always have MFMEDIASOURCE_CAN_PAUSE.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3572#note_42837
On Sun Aug 20 15:44:13 2023 +0000, Nikolay Sivov wrote:
> It does. What I mean is when player (I tried mfplay one) is stopped,
> SetPosition() does not do anything, only stores specified position. When
> it's playing, source is stopped and the started at new position, when
> it's paused source is stopped, started at new position, and then paused.
I just tried it with a custom source on Windows 10. It always stops the source and then starts it, even when paused. However, no MESessionStopped events are sent. So this is merely how IMFMediaSession calls IMFMediaSource. The thing is do we really need to mimic this? Even if it can be done with a IMFMediaSource::Start()?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3572#note_42808
Several items here were encoded conditionally even though they aren't marked as optional in the spec.
I put the tests into the same commit as the fix because the helper function used throughout the file, check_param, does not support marking only some of the tests inside of it as todo_wine.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3620