Permalink
Browse files

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 13722d7)
  • Loading branch information...
1 parent 849b5ca commit 08a8a65535638de185e68f76898c118161d4bf88 @tralph tralph committed Feb 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 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);

0 comments on commit 08a8a65

Please sign in to comment.