summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-02-14 12:55:39 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-02-14 12:55:39 (GMT)
commit6aef308aeba3ffd1a85965495f8b89f3fdfc3b8b (patch)
tree9b65e77218775221fe2be8ad3192de9abced87cc
parent4ae3c0d092d441cb9289454623e514d9c13a6d95 (diff)
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.
-rw-r--r--mythtv/libs/libmythtv/tv_play.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mythtv/libs/libmythtv/tv_play.cpp b/mythtv/libs/libmythtv/tv_play.cpp
index 2471881..5fb8ec3 100644
--- a/mythtv/libs/libmythtv/tv_play.cpp
+++ b/mythtv/libs/libmythtv/tv_play.cpp
@@ -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 +