diff options
author | wm4 <wm4@nowhere> | 2012-08-04 03:50:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-04 19:59:56 +0200 |
commit | ab63072b47f9710852636a78a339b368b493e329 (patch) | |
tree | 7bade2ffebae4dc10fb0c7260ba3d2b60ee5c795 /mp_osd.h | |
parent | 855449e67c80ba819ae8b5cfe32d59c86826a9f8 (diff) | |
download | mpv-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |