[MPlayer-dev-eng] Direct3D vo -wid specific problem

Georgi Petrov gogothebee at gmail.com
Tue Dec 2 16:20:56 CET 2008


> I am aware, it happens with SMPlayer, too.

This will happen in all players since they don't know the movie's
dimensions before the movie is displayed, but the window is created
when calling MPlayer, so it must have *some* dimensions. After the
movie dimensions are known, though, the vo driver should receive
resize event to correct the window size / rendering context size.

>>  When using vo_gl
>> almost the same thing happens - the dimensions are exactly 145/105,
>> BUT before the video begins, vo_gl receives a resize event to the real
>> dimensions. I use the same w32_common code, but I don't receive this
>> event.
>
> How do you know you received that event?

By using additional mp_msgs in check_events. And by adding the same
mp_msgs in vo_gl.c and comparing the output. vo_gl receives one extra
resize (with correct dimensions), which vo_direct3d doesn't receive.

> I suspect if in vo_gl.c in the
> config() function you change "resize(d_width, d_height)" to
> "resize(vo_dwidth, vo_dheight)" it will have the same problem.

I tried it. No, it doesn't. vo_gl still receives the second resize event.



More information about the MPlayer-dev-eng mailing list