Skip to content

Commit

Permalink
Change avsync_adjustment to use frame_interval instead of refreshrate…
Browse files Browse the repository at this point in the history
… when audio is way behind.

Patch by Mark Spieth.

Refs #7964.
  • Loading branch information
tralph committed Jan 8, 2011
1 parent 49510a8 commit 8fd44c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit 8fd44c8

Please sign in to comment.