Skip to content
Permalink
Browse files

DVD: Fix pause state handling when moving away from a still frame.

Patch from Martin Kittel (?). Closes #9404.
  • Loading branch information
Mark Kendall
Mark Kendall committed May 9, 2011
1 parent 088a043 commit 979def4f9cf4774a51d38a24d7cc558ff020c73d
Showing with 4 additions and 2 deletions.
  1. +4 −2 mythtv/libs/libmythtv/mythdvdplayer.cpp
@@ -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();
}
@@ -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();
}

0 comments on commit 979def4

Please sign in to comment.
You can’t perform that action at this time.