diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-29 15:12:19 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-29 15:36:51 +0300 |
commit | 77ec83e351ca7218464f8f77a711520d68fa2e5d (patch) | |
tree | a34d66134176ded3eeff149c756eecfd0ea52304 /osdep/getch2-win.c | |
parent | f59cda84b1e52293e656fffea1529896d28b2d21 (diff) | |
download | mpv-77ec83e351ca7218464f8f77a711520d68fa2e5d.tar.bz2 mpv-77ec83e351ca7218464f8f77a711520d68fa2e5d.tar.xz |
Add a context for mp_fifo
Store data in an allocated context and take it as an argument instead
of using static variables.
Diffstat (limited to 'osdep/getch2-win.c')
-rw-r--r-- | osdep/getch2-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c index a939784266..4d42bec878 100644 --- a/osdep/getch2-win.c +++ b/osdep/getch2-win.c @@ -121,11 +121,11 @@ static int getch2_internal(void) return -1; } -void getch2(void) +void getch2(struct mp_fifo *fifo) { int r = getch2_internal(); if (r >= 0) - mplayer_put_key(r); + mplayer_put_key(fifo, r); } void getch2_enable(){ |