diff options
author | wm4 <wm4@nowhere> | 2014-06-07 15:08:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-07 15:57:54 +0200 |
commit | 500ce69a06be2cb2b79f310e638e4c4ceabe447e (patch) | |
tree | a855d9bc2c2be7deaa9db06c787d61ffd1f33136 /player/core.h | |
parent | d64bd9efa13c5e1fc71cfc565950b4afe6e53c8a (diff) | |
download | mpv-500ce69a06be2cb2b79f310e638e4c4ceabe447e.tar.bz2 mpv-500ce69a06be2cb2b79f310e638e4c4ceabe447e.tar.xz |
client API: add API function that ensures total destruction
mpv_destroy() should perhaps better be called mpv_detach(), because it
destroys only the handle, not necessarily the player. The player is only
terminated if a quit command is sent.
This function quits automatically, and additionally waits until the
player is completely destroyed. It removes the possibility that the
player core is still uninitializing, while all client handles are
already destroyed. (Although in practice, the difference is usually not
important.)
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index b107edc7e4..ca61ab8f11 100644 --- a/player/core.h +++ b/player/core.h @@ -144,6 +144,7 @@ enum { typedef struct MPContext { bool initialized; bool is_cplayer; + bool autodetach; struct mpv_global *global; struct MPOpts *opts; struct mp_log *log; |