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.
(cherry picked from commit 6aef308)
  • Loading branch information
Mark Kendall committed Feb 15, 2011
1 parent 8332e50 commit b2c0afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -2252,6 +2252,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 b2c0afc

Please sign in to comment.