Skip to content

Commit

Permalink
Force reload of context and stream properties when switching between …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
tralph committed Feb 3, 2011
1 parent a9db0dc commit 13722d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 13722d7

Please sign in to comment.