summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-13 13:48:47 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:34 +0200
commit7428cc51496ca8e56600fdc4034b8f55720f09f9 (patch)
tree4e09e1818b2e60ccf1db3b1ba04cb227275a658f /player/core.h
parent4e05f75261d997cfc48227f5ac1ab8f18101c437 (diff)
downloadmpv-7428cc51496ca8e56600fdc4034b8f55720f09f9.tar.bz2
mpv-7428cc51496ca8e56600fdc4034b8f55720f09f9.tar.xz
client API: kill async commands on termination
This affects async commands started by client API, commands with async capability run in a sync way by client API (think mpv_command_node() with "subprocess"), and detached async work. Since scripts might want to do some cleanup work (that might involve launching processes, don't ask), we don't unconditionally kill everything on exit, but apply an arbitrary timeout of 2 seconds until async commands are aborted.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index a42b1252b8..b0d9b2a5ea 100644
--- a/player/core.h
+++ b/player/core.h
@@ -444,6 +444,7 @@ typedef struct MPContext {
struct mp_cancel *demuxer_cancel; // cancel handle for MPContext.demuxer
struct mp_abort_entry **abort_list;
int num_abort_list;
+ bool abort_all; // during final termination
// --- Owned by MPContext
pthread_t open_thread;