Permalink
Browse files

TV: Clear the contents of TvPlayWindow when playback is starting.

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...
1 parent 8332e50 commit b2c0afc005ea54cef3a562690fa4dcc349a06599 Mark Kendall committed Feb 14, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/libs/libmythtv/tv_play.cpp
View
3 mythtv/libs/libmythtv/tv_play.cpp
@@ -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 +

0 comments on commit b2c0afc

Please sign in to comment.