[mythtv-users] Playback scaling issues with 0.22-fixes
mythtv at comhem.se
Sat Oct 24 14:51:53 UTC 2009
Robin Hill wrote:
> I've just upgraded to the 0.22-fixes branch and have run into some
> issues with playback.
> I run the GUI at 960x540 (which is the highest resolution I've found a
> working modeline for my TV for), then switch to 720x576 for watching
> recordings (PAL TV, so there should be no scaling). This worked fine
> with 0.21 but I now only get part of the picture - it's been scaled up
> (probably to 960 pixels), then the right-hand side is cut off.
> I found an old post reporting the same (or a similar) issue
> but that didn't seem to reach any resolution (he switched to VDPAU which
> didn't have the same issue). He also didn't see the issue with LiveTV,
> whereas I get the same problem with both LiveTV and recordings.
I also see the behavior of scaling to the virtual size when using Xv output. I have tracked it down
to be due to the call mainWindow->setGeometry(player_bounds) near the end of TV::HandleStateChange.
This eventually ends up calling VideoOutputXv::WindowResized which causes the mentioned behavior.
It works fine for OpenGL output since the WindowResized member function hasn't been implemented.
A quick fix would be to comment out the contents of VideoOutputXv::WindowResized. That worked for me.
Another solution that seems to work, though may not be the proper one, is to set player_bounds to
the width and height of the current screen before mainWindow->setGeometry(player_bounds) is called.
The attached patch does this.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1038 bytes
Desc: not available
More information about the mythtv-users