summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-04 03:50:23 +0200
committerwm4 <wm4@nowhere>2012-08-04 19:59:56 +0200
commitab63072b47f9710852636a78a339b368b493e329 (patch)
tree7bade2ffebae4dc10fb0c7260ba3d2b60ee5c795 /mp_core.h
parent855449e67c80ba819ae8b5cfe32d59c86826a9f8 (diff)
downloadmpv-ab63072b47f9710852636a78a339b368b493e329.tar.bz2
mpv-ab63072b47f9710852636a78a339b368b493e329.tar.xz
mplayer: make OSD stack a member of MPContext
This also requires that the OSD stack related functions carry a pointer to MPContext. Free the OSD stack items (mp_osd_msg) at exit by making MPContext the talloc parent. (E.g. when exiting while something is still displayed on the OSD.)
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mp_core.h b/mp_core.h
index 31834d61e9..466bbfdf04 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -86,6 +86,7 @@ typedef struct MPContext {
struct mp_fifo *key_fifo;
struct input_ctx *input;
struct osd_state *osd;
+ struct mp_osd_msg *osd_msg_stack;
char *terminal_osd_text;
struct sub_data *subdata; // current sub_data style subtitles if any
// last sub_data style sub line if any, used by log_sub() only