[MPlayer-users] gl/g2 don't work well with -wid in windows
Pepe
rvm3000 at ya.com
Tue Feb 20 18:19:06 CET 2007
El Lunes, 19 de Febrero de 2007 16:20, Reimar Döffinger escribió:
> > It seems to me that the problem is that mplayer is not resizing the
> > video.
>
> Yes, of course, how should MPlayer find out it got resized? Normally it
> would know by the window messages it receives, but that can not work
> when the window is not MPlayer's.
> vo_directx use a special-case to fix this, attached patch implements
> something similar for gl.
> Please test and see if it helps (as said, I can't test it with any of
> the applications since already creating the GL context fails).
I've made a special version of smplayer. Instead of a normal QWidget I used a
QGLWidget. I tested a little bit. On startup it shows garbage in the
background (don't know how to clear it). gl and gl2 works (display image),
directx does not. (And the aspect ratio options in my program seems to not
work well). Could you test if it works for you?
http://www.escomposlinux.org/rvm/temp/SMP/smplayer_gl2.zip
Compiling mplayer in Windows is very very hard, but finally I managed to do it
and I could test your patch.
Now it works better. When I resize the window, the video resizes too, but
sometimes some strange lines or blocks appear on the borders. Screenshots:
http://www.uploadfile.info/uploads/cec4303053.jpg
http://www.uploadfile.info/uploads/125db2d553.jpg
The big problem is when I maximize the window (or go to fullscreen):
http://www.uploadfile.info/uploads/0bc708d6bc.jpg
And after returning to window mode:
http://www.uploadfile.info/uploads/1805bb36d3.jpg
--
Pepe
More information about the MPlayer-users
mailing list