From 2cb888629f5c78507eaa544fc1dbd6404b7327b7 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 15 Apr 2006 11:08:03 +0000 Subject: *** empty log message *** --- client/xvaccelrenderer.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'client/xvaccelrenderer.cc') diff --git a/client/xvaccelrenderer.cc b/client/xvaccelrenderer.cc index 7de4510..4ba8a9f 100644 --- a/client/xvaccelrenderer.cc +++ b/client/xvaccelrenderer.cc @@ -191,8 +191,8 @@ uint8_t XvAccelRender::GUI_XvInit(QWidget * window, uint32_t w, uint32_t h) printf("\n Adaptator : %d", i); printf("\n Base ID : %ld", curai->base_id); printf("\n Nb Port : %lu", curai->num_ports); - printf("\n Type : %d,", - curai->type); + printf("\n Type : %d,", curai->type); + #define CHECK(x) if(curai->type & x) printf("|"#x); CHECK(XvInputMask); CHECK(XvOutputMask); @@ -200,8 +200,7 @@ uint8_t XvAccelRender::GUI_XvInit(QWidget * window, uint32_t w, uint32_t h) CHECK(XvStillMask); CHECK(XvImageMask); - printf("\n Name : %s", - curai->name); + printf("\n Name : %s", curai->name); printf("\n Num Adap : %lu", curai->num_adaptors); printf("\n Num fmt : %lu", curai->num_formats); #endif @@ -213,7 +212,7 @@ uint8_t XvAccelRender::GUI_XvInit(QWidget * window, uint32_t w, uint32_t h) for (k = 0; (k < curai->num_ports) && !port; k++) { if (GUI_XvList(WDN, k + curai->base_id, &xv_format)) - port = k + curai->base_id; + port = k + curai->base_id + 1; // FIXME: TODO: HACK: It works when +1 is applied! But why!? } -- cgit v1.2.3