path: root/mp_osd.h
diff options
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-21 06:07:22 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:48:33 +0300
commitc1f9fe7d673ab7c34232a1fe9312e60f81503ccf (patch)
tree2bfe895f3b56deede80ca8243bc0ed3c46231cd7 /mp_osd.h
parentef74d21b1f1d96b2e3f180c021998fbdd80ffcba (diff)
Remove static mpctx from mplayer.c
Pass it in function calls instead. There's no reasonable way to pass it to exit_player() when used outside mplayer.c. However most of those uses seem to be wrong (the code should not make the program exit) and should be removed. For now just make exit_player() uses outside mplayer.c simply call exit() without any shutdown code.
Diffstat (limited to 'mp_osd.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/mp_osd.h b/mp_osd.h
index f3b2a69561..d4ba8adbaf 100644
--- a/mp_osd.h
+++ b/mp_osd.h
@@ -19,7 +19,9 @@
extern int osd_duration;
extern int term_osd;
-void set_osd_bar(int type,const char* name,double min,double max,double val);
+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 rm_osd_msg(int id);