locked
IMFMediaSession::Start method stops working on second intance RRS feed

  • Question

  • I have created a test app modeled on the playlist example in the vista sdk. I modified it a bit to play video and loop with the skip function. I then set it up to create two windows with a player in each. Now with one window it plays just fine and loops as expected. When I add a second window with another playlist something strange begins to happen. The first window plays and loops just fine, but when it comes to the second window, when it gets to the end of the sequencer source, it triggers the MEEndOfPresentation event. The code is set to call the skip function, which it executes fine. Then the player just goes black. It must still be playing or something, because if I wait the player will start playing again. If I wait even longer it will go black again. Now the whole time the first window is running fine.

    I have built this test app with the following example

    https://msdn.microsoft.com/en-us/library/ms697285(v=vs.85).aspx

    I could post the code for the test app, but it is quite a bit. I am hoping someone might have a clue to what the problem is before I fill this thread with code. I would appreciate it if someone could help me work through this problem.

    Edit: I have put the code, sample files I used, and a mftrace file here

    https://onedrive.live.com/?cid=C549C64FC840D296&id=C549C64FC840D296%21109

    Thank You




    Monday, March 23, 2015 3:30 PM

All replies