plugins/multimedia/gstreamer/qx11videosurface.cpp
changeset 5 603d3f8b6302
parent 0 876b1a06bc25
equal deleted inserted replaced
3:e4ebb16b39ea 5:603d3f8b6302
   458 
   458 
   459     if (XvQueryAdaptors(QX11Info::display(), m_winId, &count, &adaptors) == Success) {
   459     if (XvQueryAdaptors(QX11Info::display(), m_winId, &count, &adaptors) == Success) {
   460 #ifdef Q_WS_MAEMO_5
   460 #ifdef Q_WS_MAEMO_5
   461             //the overlay xvideo adapter fails to switch winId,
   461             //the overlay xvideo adapter fails to switch winId,
   462             //prefer the "SGX Textured Video" adapter instead
   462             //prefer the "SGX Textured Video" adapter instead
   463         for (unsigned int i = count-1; i >=0 && !portFound; --i) {
   463         for (int i = count-1; i >= 0 && !portFound; --i) {
   464 #else
   464 #else
   465         for (unsigned int i = 0; i < count && !portFound; ++i) {
   465         for (unsigned int i = 0; i < count && !portFound; ++i) {
   466 #endif
   466 #endif
   467             if (adaptors[i].type & XvImageMask) {
   467             if (adaptors[i].type & XvImageMask) {
   468                 m_portId = adaptors[i].base_id;
   468                 m_portId = adaptors[i].base_id;