Permalink
Browse files

fixed: vobsub - lose subtitle not end but start before seek time.

go back m_Streams number of m_Timestamp to sure all language streams not lose.
  • Loading branch information...
1 parent 04ebeeb commit e63553b5294b2a172a0e65c228105f58e575536a @taxigps taxigps committed Apr 7, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp
View
7 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxVobsub.cpp
@@ -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;
}

0 comments on commit e63553b

Please sign in to comment.