1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Tweaked the OSX video player to do sample-accurate seeking

This commit is contained in:
jules 2017-07-07 17:48:12 +01:00
parent 763ae6c4ad
commit cb14ab3891

View file

@ -109,7 +109,9 @@ struct VideoComponent::Pimpl : public BaseClass
CMTime t = { (CMTimeValue) (100000.0 * newPosition),
(CMTimeScale) 100000, kCMTimeFlags_Valid };
[p seekToTime: t];
[p seekToTime: t
toleranceBefore: kCMTimeZero
toleranceAfter: kCMTimeZero];
}
}