diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-07 08:41:31 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-07 08:41:31 +0000 |
commit | bc41cde0b7d62fa4bb30513c66c68ae2bc7229c4 (patch) | |
tree | 39304dfee95033e01fd541b01599ec433f22e6d9 /stream | |
parent | 540c3981ac119b81be1337be39242bcd5dafa5bd (diff) | |
download | mpv-bc41cde0b7d62fa4bb30513c66c68ae2bc7229c4.tar.bz2 mpv-bc41cde0b7d62fa4bb30513c66c68ae2bc7229c4.tar.xz |
Make sure forked code does not try to display a GTK message box (and thus crashes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24717 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/cache2.c b/stream/cache2.c index 0e6f2eef9b..65259cfb60 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -29,6 +29,7 @@ static DWORD WINAPI ThreadProc(void* s); #include "stream.h" #include "input/input.h" +extern int use_gui; int stream_fill_buffer(stream_t *s); int stream_seek_long(stream_t *s,off_t pos); @@ -305,6 +306,9 @@ int stream_enable_cache(stream_t *stream,int size,int min,int seek_limit){ static DWORD WINAPI ThreadProc(void*s){ #endif +#ifdef HAVE_NEW_GUI + use_gui = 0; // mp_msg may not use gui stuff in forked code +#endif // cache thread mainloop: signal(SIGTERM,exit_sighandler); // kill while(1){ |