From ab63072b47f9710852636a78a339b368b493e329 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Aug 2012 03:50:23 +0200 Subject: 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.) --- mp_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mp_core.h') 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 -- cgit v1.2.3