Permalink
Browse files

Last minute fix for SMI subtitles from Youngcho Kim

  • Loading branch information...
1 parent a09ca9f commit e8b28f59364fc6cf5c1a241b27232cde85bfbd31 @elan elan committed Apr 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitleParserSami.cpp
@@ -65,14 +65,14 @@ bool CDVDSubtitleParserSami::Open(CDVDStreamInfo &hints)
if(pOverlay)
{
AddText(tags, pOverlay, text, pos);
- pOverlay->iPTSStopTime = atoi(start.c_str())*DVD_TIME_BASE/1000;
+ pOverlay->iPTSStopTime = (double)atoi(start.c_str())*(DVD_TIME_BASE/1000);
pOverlay->Release();
}
pOverlay = new CDVDOverlayText();
pOverlay->Acquire(); // increase ref count with one so that we can hold a handle to this overlay
- pOverlay->iPTSStartTime = atoi(start.c_str())*DVD_TIME_BASE/1000;
+ pOverlay->iPTSStartTime = (double)atoi(start.c_str())*(DVD_TIME_BASE/1000);
pOverlay->iPTSStopTime = DVD_NOPTS_VALUE;
m_collection.Add(pOverlay);
text += pos + reg.GetFindLen();

0 comments on commit e8b28f5

Please sign in to comment.