diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-11 04:51:03 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-11 04:51:03 +0200 |
commit | 89383cff1ba5d8a928262fcb4c40382a981c78c8 (patch) | |
tree | da8b6062cc6770fd37e7a6f7b8c09fb61f46f7b2 /src/Program.cpp | |
parent | 5b3becc79461d4ecf015e33515871cc09e26e04e (diff) |
Remove dependency on youtube-dl for streaming youtube, resulting in faster video startup
Diffstat (limited to 'src/Program.cpp')
-rw-r--r-- | src/Program.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Program.cpp b/src/Program.cpp index a8189ae..5220a4c 100644 --- a/src/Program.cpp +++ b/src/Program.cpp @@ -280,3 +280,7 @@ void program_clear_current_thread() { void program_kill_in_thread(const std::thread::id &thread_id) { current_thread_program.kill_in_thread(thread_id); } + +bool program_is_dead_in_current_thread() { + return current_thread_program.is_killed(); +} |