fixed seeking

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9834 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2004-11-07 18:19:59 +00:00
parent 8dc315d3db
commit 212308131f

View File

@ -373,7 +373,11 @@ mkvReader::Seek(void *_cookie,
int64 timecode;
timecode = mkv_GetLowestQTimecode(cookie->file);
TRACE("timecode %Ld\n", timecode);
if (timecode < 0)
return B_ERROR;
*time = timecode / 1000;
*frame = get_frame_count_by_frame_rate(timecode, cookie->frame_rate);
return B_OK;
}