Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Next Next commit
[[ WindowsPlayer ]] Reimplement Windows player control using Media Fo…
…undation

This patch replaces the current DirectShow-based windows media player
implementation with one based on the MediaFoundation API
  • Loading branch information
Ian Macphail committed May 14, 2020
commit 3f6fa0d501db9925ea9e5b7ad28d029f39ecc51b
2 changes: 1 addition & 1 deletion engine/engine-sources.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@
'src/w32flst.cpp',
'src/w32icon.cpp',
'src/w32image.cpp',
'src/w32-mf-player.cpp',
'src/w32misc.cpp',
'src/w32-ds-player.cpp',
'src/w32prefix.cpp',
'src/w32printer.cpp',
'src/w32relaunch.cpp',
Expand Down
3 changes: 3 additions & 0 deletions engine/kernel.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@
'-lgdi32',
'-liphlpapi',
'-limm32',
'-lmf',
'-lmfplat',
'-lmfuuid',
'-lmscms',
'-lmsimg32',
'-lpsapi',
Expand Down
6 changes: 3 additions & 3 deletions engine/src/platform-player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ void MCPlatformCreatePlayer(bool dontuseqt, MCPlatformPlayerRef& r_player)
#endif

#ifdef TARGET_PLATFORM_WINDOWS
class MCWin32DSPlayer;
extern MCWin32DSPlayer *MCWin32DSPlayerCreate(void);
class MCWin32MFPlayer;
extern MCWin32MFPlayer *MCWin32MFPlayerCreate(void);
void MCPlatformCreatePlayer(bool dontuseqt, MCPlatformPlayerRef &r_player)
{
r_player = (MCPlatformPlayerRef)MCWin32DSPlayerCreate();
r_player = (MCPlatformPlayerRef)MCWin32MFPlayerCreate();
}
#endif

Expand Down
Loading