diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-06 17:49:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-06 17:49:45 +0200 |
commit | 59988161a000851a4f0bc90f3fdcfe375571db35 (patch) | |
tree | bf31aa5fcea089a38bdcbb1c7577fcd00884e6a5 /src/VideoPlayer.cpp | |
parent | c11d8f861b0e260240ec59c423cdb440d7409ac1 (diff) |
Restart videoplayer when changing video, to fix loadfile video bug
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 41b6d0e..dbfcaac 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -54,11 +54,11 @@ namespace QuickMedia { onPlaybackEndedCallback(nullptr), mpv(nullptr), mpvGl(nullptr), - context(std::make_unique<sf::Context>(sf::ContextSettings(), width, height)), + context(nullptr), textureBuffer(nullptr), desired_size(width, height) { - ContextScope context_scope(context.get()); + //ContextScope context_scope(context.get()); texture.setSmooth(true); // mpv_create requires LC_NUMERIC to be set to "C" for some reason, see mpv_create documentation |