diff options
author | phintuka <phintuka> | 2008-06-19 14:49:29 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-06-19 14:49:29 +0000 |
commit | 0de3a175f02c198dfb086489f1123f59190c90e4 (patch) | |
tree | e7f67c69b31f75f0d8e4e319079db26eb2a27063 | |
parent | a72a85746aa75a8df19ccbc5adb06476a0114106 (diff) | |
download | xineliboutput-0de3a175f02c198dfb086489f1123f59190c90e4.tar.gz xineliboutput-0de3a175f02c198dfb086489f1123f59190c90e4.tar.bz2 |
sxfe_display_close:
- Check "this" pointer first
- Always close xine first
- Close HUD only when connected to X server
-rw-r--r-- | xine_sxfe_frontend.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 15aa806d..01fe8c84 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.67 2008-06-17 19:23:38 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.68 2008-06-19 14:49:29 phintuka Exp $ * */ @@ -1531,15 +1531,18 @@ static void sxfe_display_close(frontend_t *this_gen) { sxfe_t *this = (sxfe_t*)this_gen; + if(!this) + return; + + if(this->xine) + this->fe.xine_exit(this_gen); + + if(this->display) { + #ifdef HAVE_XRENDER - hud_osd_close(this); + hud_osd_close(this); #endif - if(this && this->display) { - - if(this->xine) - this->fe.xine_exit(this_gen); - #ifdef HAVE_XDPMS if(this->dpms_state == TRUE) DPMSEnable(this->display); |