fixed seeking
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9834 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8dc315d3db
commit
212308131f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user