diff options
author | phintuka <phintuka> | 2008-03-31 23:08:26 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-03-31 23:08:26 +0000 |
commit | 48deae8ef2cfa579004817ce813baa6bfc31402d (patch) | |
tree | afd75dd8461a245d36fd450fa35dce588306148d | |
parent | 47b24dff0803f217cb46291faf2adfc808858dfd (diff) | |
download | xineliboutput-48deae8ef2cfa579004817ce813baa6bfc31402d.tar.gz xineliboutput-48deae8ef2cfa579004817ce813baa6bfc31402d.tar.bz2 |
Added check for XRender server extension
-rw-r--r-- | xine_sxfe_frontend.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index af60ed49..2a17178f 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.37 2008-03-31 22:32:43 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.38 2008-03-31 23:08:26 phintuka Exp $ * */ @@ -674,10 +674,20 @@ static int hud_osd_open(frontend_t *this_gen) { sxfe_t *this = (sxfe_t*)this_gen; if(this && this->hud) { + int dummy; + XLockDisplay(this->display); LOGDBG("opening HUD OSD window..."); + if(!XRenderQueryExtension(this->display, &dummy, &dummy)) { + LOGMSG("hud_osd_open: ERROR: XRender extension not available."); + LOGMSG("XRender extension must be enabled in X configuration (xorg.conf etc.)"); + this->hud = 0; + XUnlockDisplay(this->display); + return 1; + } + this->hud_vis = find_argb_visual(this->display, DefaultScreen(this->display)); if(!this->hud_vis) { LOGMSG("find_argb_visual() failed. HUD OSD disabled."); |