diff options
author | deva <deva> | 2006-04-15 11:08:03 +0000 |
---|---|---|
committer | deva <deva> | 2006-04-15 11:08:03 +0000 |
commit | 2cb888629f5c78507eaa544fc1dbd6404b7327b7 (patch) | |
tree | 7aea2ce0a17e427095b817e32edee303677c8cf5 /client/xvaccelrenderer.cc | |
parent | afdd0a07be6a669cdd8343fc033f170395b470c0 (diff) |
*** empty log message ***
Diffstat (limited to 'client/xvaccelrenderer.cc')
-rw-r--r-- | client/xvaccelrenderer.cc | 9 |
1 files changed, 4 insertions, 5 deletions
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!? } |