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:36:01 (GMT)
commit13722d797407ba130ff106bf27bb52bd5eca95de (patch)
treec5d1bffcc0ffc6938ea3a167619b35aef3ae7f1c
parenta9db0dc500124f01e1975ed9535705ddd3bf1ca2 (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.
-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 66ed49e..1ab055c 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -2247,6 +2247,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";
@@ -2372,6 +2373,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);