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_osd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mp_osd.h') diff --git a/mp_osd.h b/mp_osd.h index eb1c3eae07..0e9476a4f8 100644 --- a/mp_osd.h +++ b/mp_osd.h @@ -37,9 +37,9 @@ struct MPContext; void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,double max,double val); -void set_osd_msg(int id, int level, int time, const char* fmt, ...); -void set_osd_tmsg(int id, int level, int time, const char* fmt, ...); -void rm_osd_msg(int id); +void set_osd_msg(struct MPContext *mpctx, int id, int level, int time, const char* fmt, ...); +void set_osd_tmsg(struct MPContext *mpctx, int id, int level, int time, const char* fmt, ...); +void rm_osd_msg(struct MPContext *mpctx, int id); void mp_show_osd_progression(struct MPContext *mpctx); #endif /* MPLAYER_MP_OSD_H */ -- cgit v1.2.3