Skip to content

Commit

Permalink
DVD: Fix pause state handling when moving away from a still frame.
Browse files Browse the repository at this point in the history
Patch from Martin Kittel (?). Closes #9404.
  • Loading branch information
Mark Kendall committed May 9, 2011
1 parent 088a043 commit 979def4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythtv/libs/libmythtv/mythdvdplayer.cpp
Expand Up @@ -128,9 +128,10 @@ bool MythDVDPlayer::VideoLoop(void)
if (player_ctx->buffer->DVD()->DVDWaitingForPlayer())
{
VERBOSE(VB_PLAYBACK, LOC + "Clearing Mythtv dvd wait state");
bool inStillFrame = player_ctx->buffer->DVD()->IsInStillFrame();
player_ctx->buffer->DVD()->SkipDVDWaitingForPlayer();
ClearAfterSeek(true);
if (!player_ctx->buffer->DVD()->IsInStillFrame() && videoPaused)
if (!inStillFrame && videoPaused)
UnpauseVideo();
return !IsErrored();
}
Expand All @@ -142,8 +143,9 @@ bool MythDVDPlayer::VideoLoop(void)
if (player_ctx->buffer->DVD()->IsWaiting())
{
VERBOSE(VB_PLAYBACK, LOC + "Clearing DVD wait state");
bool inStillFrame = player_ctx->buffer->DVD()->IsInStillFrame();
player_ctx->buffer->DVD()->WaitSkip();
if (!player_ctx->buffer->DVD()->IsInStillFrame() && videoPaused)
if (!inStillFrame && videoPaused)
UnpauseVideo();
return !IsErrored();
}
Expand Down

0 comments on commit 979def4

Please sign in to comment.