From 575fd7c2bff5615f6b8224a9746e46e5eae9c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 1 Sep 2010 17:29:32 +0000 Subject: [PATCH] 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 --- src/kits/media/MediaTrack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kits/media/MediaTrack.cpp b/src/kits/media/MediaTrack.cpp index b4d9545945..00adbd5aea 100644 --- a/src/kits/media/MediaTrack.cpp +++ b/src/kits/media/MediaTrack.cpp @@ -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");