Skip to content

Commit

Permalink
MythPlayer: Fix release of hardware decoders during livetv transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Dec 3, 2019
1 parent 40c031a commit 1b3dd0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -2704,6 +2704,9 @@ void MythPlayer::SwitchToProgram(void)
Pause();
ChangeSpeed();

// Release all frames to ensure the current decoder resources are released
DiscardVideoFrames(true, true);

if (newIsDummy)
{
OpenDummy();
Expand Down Expand Up @@ -2854,6 +2857,10 @@ void MythPlayer::JumpToProgram(void)
Pause();
ChangeSpeed();
ResetCaptions();

// Release all frames to ensure the current decoder resources are released
DiscardVideoFrames(true, true);

player_ctx->m_tvchain->SetProgram(*pginfo);
player_ctx->m_buffer->Reset(true);

Expand Down

0 comments on commit 1b3dd0d

Please sign in to comment.