summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Ralph <tralph@mythtv.org>2011-02-03 03:36:01 (GMT)
committer Taylor Ralph <tralph@mythtv.org>2011-02-03 03:45:40 (GMT)
commit08a8a65535638de185e68f76898c118161d4bf88 (patch)
tree519d6f1a2374bee574ef75c48992466b2be63179
parent849b5cae9090111d191fb5ee7f55152507767a85 (diff)
Force reload of context and stream properties when switching between LiveTV segments.
When transitioning between LiveTV segments it is not safe to assume that the next segment has the same AVFormatContext and AVStream properties as the previous segment. Fixes #9542. (cherry picked from commit 13722d797407ba130ff106bf27bb52bd5eca95de)
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 43b324c..e4b73d8 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -2173,6 +2173,7 @@ void MythPlayer::SwitchToProgram(void)
discontinuity, newtype, newid);
if (!pginfo)
return;
+ newtype = true; // force reloading of context and stream properties
bool newIsDummy = player_ctx->tvchain->GetCardType(newid) == "DUMMY";
@@ -2298,6 +2299,7 @@ void MythPlayer::JumpToProgram(void)
discontinuity, newtype, newid);
if (!pginfo)
return;
+ newtype = true; // force reloading of context and stream properties
bool newIsDummy = player_ctx->tvchain->GetCardType(newid) == "DUMMY";
SetPlayingInfo(*pginfo);