Skip to content
Browse files

Make sure that VideoSync is given the the new frame interval in all

cases when the playback speed changes.


git-svn-id: http://svn.mythtv.org/svn/trunk@5572 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 1f3babe commit a9560be66f2580f8b10a5896e87564a0956cff8d Bruce Markey committed Feb 11, 2005
Showing with 5 additions and 1 deletion.
  1. +2 −0 mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
  2. +3 −1 mythtv/libs/libmythtv/vsync.cpp
View
2 mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
@@ -2333,6 +2333,8 @@ void NuppelVideoPlayer::DoPlay(void)
osd->SetFrameInterval(frame_interval);
if (videoOutput && videosync != NULL)
{
+ videosync->SetFrameInterval(frame_interval, m_double_framerate);
+
// If using bob deinterlace, turn on or off if we
// changed to or from synchronous playback speed.
View
4 mythtv/libs/libmythtv/vsync.cpp
@@ -115,7 +115,9 @@ void VideoSync::SetFrameInterval(int fr, bool intr)
m_interlaced = intr;
if (m_interlaced && m_refresh_interval > m_frame_interval/2)
m_interlaced = false; // can't display both fields at 2x rate
-
+
+ VERBOSE(VB_PLAYBACK, QString("Set video sync frame interval to %1")
+ .arg(m_frame_interval));
}
void VideoSync::OffsetTimeval(struct timeval& tv, int offset)

0 comments on commit a9560be

Please sign in to comment.
Something went wrong with that request. Please try again.