aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-08-04 18:17:43 +0200
committerdec05eba <dec05eba@protonmail.com>2019-08-04 18:17:46 +0200
commit8103563530e6e5711f20bfef97141421520341fb (patch)
tree79fd8f1e70df35aa7123d40201c75e6c74ab2aa8 /include
parentf0de15c1939342af2fc702de94e1e6ec81e7ac50 (diff)
Fix scaling issue
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;