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-15 00:53:52 (GMT)
commitb2c0afc005ea54cef3a562690fa4dcc349a06599 (patch)
treeeb030deac581ad3082f0f86c331b608bd0f97df3
parent8332e50300ae3f17fdcb8af1fa1b60d62c03237f (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. (cherry picked from commit 6aef308aeba3ffd1a85965495f8b89f3fdfc3b8b)
-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 1c673c9..880ae86 100644
--- a/mythtv/libs/libmythtv/tv_play.cpp
+++ b/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 +