summaryrefslogtreecommitdiffstats
path: root/mp_osd.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_osd.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_osd.h')
-rw-r--r--mp_osd.h6
1 files changed, 3 insertions, 3 deletions
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 */