Skip to content

Commit

Permalink
VideoPlayer: fix comskip
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 20, 2016
1 parent e6a3e3b commit acafa80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/VideoPlayer.cpp
Expand Up @@ -2260,7 +2260,7 @@ void CVideoPlayer::CheckAutoSceneSkip()
/*
* Seeking is NOT flushed so any content up to the demux point is retained when playing forwards.
*/
m_messenger.Put(new CDVDMsgPlayerSeek(seek, true, m_omxplayer_mode, true, false, true));
m_messenger.Put(new CDVDMsgPlayerSeek(seek, true, false, m_omxplayer_mode, true, false, true));
/*
* Seek doesn't always work reliably. Last physical seek time is recorded to prevent looping
* if there was an error with seeking and it landed somewhere unexpected, perhaps back in the
Expand All @@ -2278,7 +2278,7 @@ void CVideoPlayer::CheckAutoSceneSkip()
/*
* Seeking is NOT flushed so any content up to the demux point is retained when playing forwards.
*/
m_messenger.Put(new CDVDMsgPlayerSeek(cut.end + 1, true, m_omxplayer_mode, true, false, true));
m_messenger.Put(new CDVDMsgPlayerSeek(cut.end + 1, true, false, m_omxplayer_mode, true, false, true));
/*
* Each commercial break is only skipped once so poorly detected commercial breaks can be
* manually re-entered. Start and end are recorded to prevent looping and to allow seeking back
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
Expand Up @@ -312,6 +312,7 @@ void CVideoPlayerAudio::Process()
{
if (m_pAudioCodec)
m_pAudioCodec->Reset();
m_syncState = IDVDStreamPlayer::SYNC_STARTING;
}
else if (pMsg->IsType(CDVDMsg::GENERAL_FLUSH))
{
Expand Down
1 change: 1 addition & 0 deletions xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
Expand Up @@ -337,6 +337,7 @@ void CVideoPlayerVideo::Process()
m_picture.iFlags &= ~DVP_FLAG_ALLOCATED;
m_packets.clear();
m_droppingStats.Reset();
m_syncState = IDVDStreamPlayer::SYNC_STARTING;
}
else if (pMsg->IsType(CDVDMsg::GENERAL_FLUSH)) // private message sent by (CVideoPlayerVideo::Flush())
{
Expand Down

0 comments on commit acafa80

Please sign in to comment.