diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-04 16:04:40 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-04 16:04:43 +0200 |
commit | f0de15c1939342af2fc702de94e1e6ec81e7ac50 (patch) | |
tree | 142a3a902fbc8ffe331e2c84a8ef2a6eef96f470 | |
parent | 2a78b5b047a753874ca1e499f79d5f9fbb1699d5 (diff) |
Fix crash (x11 multithreading), fix play next video looping instead of next
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/QuickMedia.cpp | 3 | ||||
-rw-r--r-- | src/main.cpp | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ # QuickMedia Native clients of websites with fast access to what you want to see # Dependencies -See project.conf \[dependencies]
\ No newline at end of file +See project.conf \[dependencies]. youtube-dl also needs to be installed to play videos from youtube.
\ No newline at end of file diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index fb29058..c0ae44f 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -395,7 +395,8 @@ namespace QuickMedia { video_player->onPlaybackEndedCallback = [this, &related_media, &video_player]() { if(related_media.empty()) return; - video_player->load_file(related_media.front()->url); + video_url = related_media.front()->url; + video_player->load_file(video_url); related_media = current_plugin->get_related_media(video_url); }; } diff --git a/src/main.cpp b/src/main.cpp index 6389370..2dc50ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,8 @@ #include "../include/QuickMedia.hpp" +#include <X11/Xlib.h> int main() { + XInitThreads(); QuickMedia::Program program; program.run(); return 0; |