Skip to content

Commit

Permalink
Fixed problem with automatic EDL cuts being seeked to multiple times.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Teirney committed Jun 19, 2012
1 parent 35e9b07 commit ebb4217
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
5 changes: 0 additions & 5 deletions xbmc/cores/dvdplayer/DVDPlayer.cpp
Expand Up @@ -1777,11 +1777,6 @@ void CDVDPlayer::CheckAutoSceneSkip()
m_EdlAutoSkipMarkers.commbreak_end = cut.end;
m_EdlAutoSkipMarkers.seek_to_start = true; // Allow backwards Seek() to go directly to the start
}

/*
* Reset the EDL automatic skip cut marker every 500 ms.
*/
m_EdlAutoSkipMarkers.ResetCutMarker(500); // in msec
}


Expand Down
18 changes: 0 additions & 18 deletions xbmc/cores/dvdplayer/DVDPlayer.h
Expand Up @@ -451,31 +451,13 @@ class CDVDPlayer : public IPlayer, public CThread, public IDVDPlayer
commbreak_start = -1;
commbreak_end = -1;
seek_to_start = false;
reset = 0;
mute = false;
}

void ResetCutMarker(double timeout)
{
if(reset != 0
&& reset + DVD_MSEC_TO_TIME(timeout) > CDVDClock::GetAbsoluteClock())
return;

/*
* Reset the automatic EDL skip marker for a cut so automatic seeking can happen again if,
* for example, the initial automatic skip ended up back in the cut due to seeking
* inaccuracies.
*/
cut = -1;

reset = CDVDClock::GetAbsoluteClock();
}

int cut; // last automatically skipped EDL cut seek position
int commbreak_start; // start time of the last commercial break automatically skipped
int commbreak_end; // end time of the last commercial break automatically skipped
bool seek_to_start; // whether seeking can go back to the start of a previously skipped break
double reset; // last actual reset time
bool mute; // whether EDL mute is on

} m_EdlAutoSkipMarkers;
Expand Down

0 comments on commit ebb4217

Please sign in to comment.