aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/VideoPlayer.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp
index df08339..5fd5e60 100644
--- a/include/VideoPlayer.hpp
+++ b/include/VideoPlayer.hpp
@@ -32,15 +32,16 @@ namespace QuickMedia {
void resize(const sf::Vector2i &size);
void draw(sf::RenderWindow &window);
+ // @path can also be an url if youtube-dl is installed
void load_file(const std::string &path);
// This counter is incremented when mpv wants to redraw content
std::atomic_int redrawCounter;
- sf::Context context;
PlaybackEndedCallback onPlaybackEndedCallback;
private:
mpv_handle *mpv;
mpv_opengl_cb_context *mpvGl;
+ std::unique_ptr<sf::Context> context;
sf::Sprite sprite;
sf::Texture texture;
sf::Uint8 *textureBuffer;