Skip to content

Commit

Permalink
Last minute fix for SMI subtitles from Youngcho Kim
Browse files Browse the repository at this point in the history
  • Loading branch information
elan committed Apr 7, 2009
1 parent a09ca9f commit e8b28f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitleParserSami.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e8b28f5

Please sign in to comment.