Mercurial > mplayer.hg
diff stream/cache2.c @ 24697:8f2154e066cf
Make sure forked code does not try to display a GTK message box (and thus crashes)
| author | reimar |
|---|---|
| date | Sun, 07 Oct 2007 08:41:31 +0000 |
| parents | 84f95595f31f |
| children | 959fca775f43 |
line wrap: on
line diff
--- a/stream/cache2.c Sun Oct 07 08:19:11 2007 +0000 +++ b/stream/cache2.c Sun Oct 07 08:41:31 2007 +0000 @@ -29,6 +29,7 @@ #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 @@ 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){
