[SDL] Qtopia driver....

Green Wan gwan at marvell.com
Tue Aug 1 00:52:07 PDT 2006


Hi All,

I've fixed this problem. Where I modified is at
./src/video/qtopia/SDL_QWin.cc.

I marked the line "my_painter->end();" as below;

==================================================
void SDL_QWin::unlockScreen() {
   if(my_locked > 0) {
        my_locked--; // decrease lock refcount;
      }
      if(!my_locked && my_painter) {
         fprintf( stderr, "++++++++++++++++++++++++++ end
QDirectPainter, mylocked = %d\n", my_locked );
       //my_painter->end();
       delete my_painter;
       my_painter = 0;
      }
   } 
================================================

Best regards,
Green

-----Original Message-----
From: sdl-bounces+gwan=marvell.com at libsdl.org
[mailto:sdl-bounces+gwan=marvell.com at libsdl.org] On Behalf Of Green Wan
Sent: Tuesday, August 01, 2006 2:02 PM
To: sdl at libsdl.org
Subject: [SDL] Qtopia driver....

Hi All,

I am trying to execute mplayer with SDL as video output. But mplayer
will crash when draw frame.
Here is my test result. Can anyone help me? Thanks in advance.

---------------------------------------
1. configure libSDL with "--enable-video-qtopia"
2. export SDL_VIDEODRIVER=qtopia
3. ./mplayer -vo sdl /test.mpg
4. error message "QPaintDevice: Must construct a Qapplication before a
QPaintDevice"
5. program exit.

So that I add "SDL_InitQPEApp();" in mplayer. Then, the error message
changes to

"Warning: Qpainter::end Missing begin() or begin() failed"    
"Warning: Qpainter::setPen: Will be reset by begin()"
"Warning: Qpainter::SetBrush: Will be reset by begin()"

Then, program crashed.
------------------------------------------------------------------------
---------------------------------
P.s this error message is output from QT library. I guess I need to
modify or add some code to make the paint device works normally.

Best regards,
Green

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list