Skip to content

Commit

Permalink
MythPlayer: Clear sync offsets before retrieving their initial values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Apr 5, 2011
1 parent e2b49a5 commit 5cfabe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ MythPlayer::MythPlayer(bool muted)
// Debugging variables
output_jmeter(NULL)
{
memset(&tc_lastval, 0, sizeof(tc_lastval));
memset(&tc_wrap, 0, sizeof(tc_wrap));

playerThread = QThread::currentThread();
// Playback (output) zoom control
detect_letter_box = new DetectLetterbox(this);
Expand All @@ -226,8 +229,6 @@ MythPlayer::MythPlayer(bool muted)
endExitPrompt = gCoreContext->GetNumSetting("EndOfRecordingExitPrompt");
pip_default_loc = (PIPLocation)gCoreContext->GetNumSetting("PIPLocation", kPIPTopLeft);
tc_wrap[TC_AUDIO] = gCoreContext->GetNumSetting("AudioSyncOffset", 0);
memset(&tc_lastval, 0, sizeof(tc_lastval));
memset(&tc_wrap, 0, sizeof(tc_wrap));

// Get VBI page number
QString mypage = gCoreContext->GetSetting("VBIpageNr", "888");
Expand Down

0 comments on commit 5cfabe3

Please sign in to comment.