[Toxine-cvs] CVS: toxine/src/plugins vo_x11.c,1.11,1.12
Brought to you by:
f1rmb
From: Daniel Caujolle-B. <f1...@us...> - 2002-07-19 22:38:49
|
Update of /cvsroot/toxine/toxine/src/plugins In directory usw-pr-cvs1:/tmp/cvs-serv11359/plugins Modified Files: vo_x11.c Log Message: start/end mmk implemented. mmk remaining: implement all mmk commands. Index: vo_x11.c =================================================================== RCS file: /cvsroot/toxine/toxine/src/plugins/vo_x11.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- vo_x11.c 14 Jul 2002 14:29:37 -0000 1.11 +++ vo_x11.c 19 Jul 2002 22:38:46 -0000 1.12 @@ -293,13 +293,17 @@ usec_sleep(100000); while(tox->running) { - int status = xine_get_status(tox->xine); - - if(status == XINE_PLAY) { - screensaver_timer++; - if(screensaver_timer >= private->fake_rate) { - screensaver_timer = 0; - reset_screensaver(vop); + int status; + + if(tox->xine != NULL) { + status = xine_get_status(tox->xine); + + if(status == XINE_PLAY) { + screensaver_timer++; + if(screensaver_timer >= private->fake_rate) { + screensaver_timer = 0; + reset_screensaver(vop); + } } } |