Skip to content

Commit

Permalink
Added 4.17 API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpreussner committed Jul 29, 2017
1 parent 3534be6 commit 99ff31f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/NdiMedia/Private/NdiMediaModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FNdiMediaModule

//~ INdiMediaModule interface

virtual TSharedPtr<IMediaPlayer> CreatePlayer() override
virtual TSharedPtr<IMediaPlayer, ESPMode::ThreadSafe> CreatePlayer() override
{
if (!Initialized)
{
Expand Down
2 changes: 1 addition & 1 deletion Source/NdiMedia/Public/INdiMediaModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class INdiMediaModule
*
* @return A new media player, or nullptr if a player couldn't be created.
*/
virtual TSharedPtr<IMediaPlayer> CreatePlayer() = 0;
virtual TSharedPtr<IMediaPlayer, ESPMode::ThreadSafe> CreatePlayer() = 0;

public:

Expand Down
2 changes: 1 addition & 1 deletion Source/NdiMediaFactory/Private/NdiMediaFactoryModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class FNdiMediaFactoryModule
return true;
}

virtual TSharedPtr<IMediaPlayer> CreatePlayer() override
virtual TSharedPtr<IMediaPlayer, ESPMode::ThreadSafe> CreatePlayer() override
{
auto NdiMediaModule = FModuleManager::LoadModulePtr<INdiMediaModule>("NdiMedia");
return (NdiMediaModule != nullptr) ? NdiMediaModule->CreatePlayer() : nullptr;
Expand Down

0 comments on commit 99ff31f

Please sign in to comment.