[mythtv] [PATCH] OSD glitch - starts as 4:3 and corrects to 16:9

Matt Doran matt.doran at papercut.biz
Thu May 24 13:45:47 UTC 2007

Mark Kendall wrote:
> On 5/24/07, Matt Doran <matt.doran at papercut.biz> wrote:
>> I have a 16:9 plasma TV, and when I start watching live TV (DVB) the
>> following happens ... the screen goes black and the OSD appears showing
>> the tuner in use and the current program details.  The OSD seems to be
>> sized for a 4:3 aspect ratio (not taking up the full screen width), then
>> once the tuner locks on and the picture appears, the OSD resizes to the
>> full width of the screen.  All this happens within a second or so.  It
>> just looks a bit ugly.
> Matt
> Have a look in NuppelVideoPlayer.
> As a quick and dirty check it might be sufficient to change the
> default video_aspect to 16 / 9 in the constructor.
It wasn't the constructor.  It took me a while to figure out how the 
video playback process works ... but I got there eventually.  :)    In a 
method in NuppelVideoPlayer called OpenDummy which sets up the dummy 
video while waiting for the channel to tune....  it sets the video size 
arbitrarily to 720x576 and aspect of 1.3333.  At this point we don't 
have access to the display size.  We don't know that until in the 
InitVideo method.

So my fix was to set the force the video aspect to the display aspect if 
we're in dummy mode.  It works very nicely.  Now when I start to watch 
live tv, the OSD appears at the full width (16:9).  I don't get the 
ugliness of switching from the default 4:3 to 16:9 when the video starts.

The patch was only a couple of lines, and it results in much more 
polished results. :)   

What do you think?


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-osd-resize.diff
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20070524/66857aff/attachment.diff 

More information about the mythtv-dev mailing list