Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #865 from taxigps/vobsub2

fixed: vobsub - lose subtitles
  • Loading branch information...
commit 14ef6856b1b09351cdb682889b6d2d9ab33a44d7 2 parents f72dfdc + db018ce
taxigps taxigps authored
7 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp
View
@@ -138,11 +138,10 @@ bool CDVDDemuxVobsub::SeekTime(int time, bool backwords, double* startpts)
if(m_Timestamp->pts > pts)
break;
}
- if(backwords)
- return true;
-
- if(m_Timestamps.begin() != m_Timestamp)
+ for(unsigned i=0;i<m_Streams.size() && m_Timestamps.begin() != m_Timestamp;i++)
+ {
m_Timestamp--;
+ }
return true;
}
3  xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
View
@@ -863,7 +863,8 @@ int CDVDPlayerVideo::GetLevel()
void CDVDPlayerVideo::ProcessOverlays(DVDVideoPicture* pSource, double pts)
{
// remove any overlays that are out of time
- m_pOverlayContainer->CleanUp(pts - m_iSubtitleDelay);
+ if (m_started)
+ m_pOverlayContainer->CleanUp(pts - m_iSubtitleDelay);
enum EOverlay
{ OVERLAY_AUTO // select mode auto
Please sign in to comment.
Something went wrong with that request. Please try again.