diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 09:14:06 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-30 13:24:56 +0300 |
commit | 66db9ec7d6a9f869dc922ad9a9b8a5d278577bab (patch) | |
tree | 7a8e265871b095ca366b794f94d89c75765ee07b /input | |
parent | 7b085d4514d091945492cb00fa5a98bbd1bc7cf8 (diff) | |
download | mpv-66db9ec7d6a9f869dc922ad9a9b8a5d278577bab.tar.bz2 mpv-66db9ec7d6a9f869dc922ad9a9b8a5d278577bab.tar.xz |
Remove INITIALIZED_INPUT from mpctx->initialized_flags
The input functions are never uninited except at exit. Move the uninit
to player exit function and remove the flag.
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 8f5951613a..3d898aa0af 100644 --- a/input/input.c +++ b/input/input.c @@ -1770,6 +1770,9 @@ struct input_ctx *mp_input_init(int use_gui) void mp_input_uninit(struct input_ctx *ictx) { + if (!ictx) + return; + unsigned int i; mp_cmd_bind_section_t* bind_section; |