I don't want to come off as too pedantic, but a couple items in the
Media Engine Sample...
In meplayer.cpp,
CoCreateInstance is used. This method's documentation says it's a "Desktop only" function. Should this be
CoCreateInstanceFromApp? I'm mostly curious if CoCreateInstance is incorrectly documented, or if this was just overlooked in the sample.
Also in meplayer.cpp, the MEPlayer::OnTimer() method has a EnterCriticalSection, code, LeaveCriticalSection. If the code between throws an error, LeaveCriticalSection will never be called. This exists in other functions in the code also. Replacing
with an "AutoLock" RAII class would fix.
-Jer