Of course the same fix needs to be applied
to SeekToTime(). The extractor may have modified the time, don't let the decoder overwrite the actually seeked time. I am thinking the API should be called SeekedTo() or Seeked(), and would be purely informative for decoders, without even a return value. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38499 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f96246077d
commit
575fd7c2bf
@ -372,6 +372,7 @@ BMediaTrack::SeekToTime(bigtime_t* inOutTime, int32 flags)
|
||||
// can do is "reset" their decoder state, since they are made
|
||||
// aware of the fact that there will be a jump in the data. Maybe
|
||||
// rename the Decoder method?
|
||||
seekTime = time;
|
||||
result = fDecoder->Seek(seekTo, 0, &frame, seekTime, &time);
|
||||
if (result != B_OK) {
|
||||
ERROR("BMediaTrack::SeekToTime: decoder seek failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user