On Wed Aug 23 02:47:48 2023 +0000, Zhiyi Zhang wrote:
Even with a custom source with MFMEDIASOURCE_CAN_PAUSE reported. Still, no MESessionStopped events are sent. I also tested with the media source created from IMFSourceResolver::CreateObjectFromByteStream() with test.mp4 and got the same result. So it seems to be that is merely how IMFMediaSession calls IMFMediaSource. Stops the source first and then start it. But with a single IMFMediaSource::Start() achieving the same result. Do we really need to stop the sources first when performing a seek?
Stopping sources first does eliminate the need to add an OBJ_STATE_SEEKING state though. I decided to do it.