Author: stippi Date: 2010-09-01 17:54:06 +0200 (Wed, 01 Sep 2010) New Revision: 38496 Changeset: http://dev.haiku-os.org/changeset/38496 Modified: haiku/trunk/src/kits/media/MediaTrack.cpp Log: Do not override the seek frame which the extractor may have adjusted. (The API is somewhat silly, since Decoders can't really do anything with the seek frame, it can only be told to them. But current decoders will assign the seeked frame from the wanted frame, which would override the seeked frame from the extractor... the API should be fixed.) Modified: haiku/trunk/src/kits/media/MediaTrack.cpp =================================================================== --- haiku/trunk/src/kits/media/MediaTrack.cpp 2010-09-01 15:26:28 UTC (rev 38495) +++ haiku/trunk/src/kits/media/MediaTrack.cpp 2010-09-01 15:54:06 UTC (rev 38496) @@ -422,6 +422,7 @@ // 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 codec method? + seekFrame = frame; result = fDecoder->Seek(seekTo, seekFrame, &frame, 0, &time); if (result != B_OK) { ERROR("BMediaTrack::SeekToFrame: decoder seek failed\n"); @@ -440,7 +441,8 @@ fCurrentFrame = frame; fCurrentTime = time; - PRINT(1, "BMediaTrack::SeekToTime SeekToFrame, requested %Ld, result %Ld\n", seekFrame, *inout_frame); + PRINT(1, "BMediaTrack::SeekToTime SeekToFrame, requested %Ld, " + "result %Ld\n", seekFrame, *inout_frame); return B_OK; }