From 8fd44c8f6b0c7c2053a61c2590c781961023c8bb Mon Sep 17 00:00:00 2001 From: Taylor Ralph Date: Sat, 8 Jan 2011 16:17:28 -0500 Subject: [PATCH] Change avsync_adjustment to use frame_interval instead of refreshrate when audio is way behind. Patch by Mark Spieth. Refs #7964. --- mythtv/libs/libmythtv/mythplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp index 359e6419ac9..34e80c0b3ba 100644 --- a/mythtv/libs/libmythtv/mythplayer.cpp +++ b/mythtv/libs/libmythtv/mythplayer.cpp @@ -1860,7 +1860,7 @@ void MythPlayer::AVSync(VideoFrame *buffer, bool limit_delay) { // If audio is way behind of video, adjust for it... // by cutting the frame rate in half for the length of this frame - avsync_adjustment = refreshrate; + avsync_adjustment = frame_interval; lastsync = true; VERBOSE(VB_PLAYBACK, LOC + QString("Video is %1 frames ahead of audio,\n"