Skip to content

Commit

Permalink
Properly initialize the MythPlayer::video_aspect field.
Browse files Browse the repository at this point in the history
The MythPlayer constructor unconditionally initializes video_aspect to
4.0/3.0.  In some configurations, pressing EDIT during the "Please
Wait" screen before the start of playback of a non-4:3 recording, will
bring up the cutlist editor locked into 4:3 mode.  Explicitly
initializing video_aspect earlier fixes this.
  • Loading branch information
stichnot committed Dec 5, 2012
1 parent af4db31 commit 192e850
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -813,6 +813,8 @@ void MythPlayer::SetVideoParams(int width, int height, double fps,

video_dim = QSize((width + 15) & ~0xf, (height + 15) & ~0xf);
video_disp_dim = QSize(width, height);
if (height)
video_aspect = (float)width / height;

if (fps > 0.0f && fps < 121.0f)
{
Expand Down

0 comments on commit 192e850

Please sign in to comment.