Skip to content

Commit

Permalink
TV: Clear the contents of TvPlayWindow when playback is starting.
Browse files Browse the repository at this point in the history
This ensures we don't see the 'Please wait' etc popups when exiting
playback and clears up some theme anomalies with the TvPlayWindow
appearing behind, for example, the program guide in Graphite.
  • Loading branch information
Mark Kendall committed Feb 14, 2011
1 parent 4ae3c0d commit 6aef308
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -2111,6 +2111,9 @@ void TV::HandleStateChange(PlayerContext *mctx, PlayerContext *ctx)
GetMythMainWindow()->PushDrawDisabled();
}
DrawUnusedRects();
// we no longer need the contents of myWindow
if (myWindow)
myWindow->DeleteAllChildren();
}

VERBOSE(VB_PLAYBACK, LOC +
Expand Down

0 comments on commit 6aef308

Please sign in to comment.