From d66726ae019056058de13420471ef5309b5ff666 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 16 Mar 2014 10:09:05 +0100 Subject: [PATCH] Revert an unwanted commit. --- MP42/MP42MkvImporter.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MP42/MP42MkvImporter.m b/MP42/MP42MkvImporter.m index 8f5f552..318c7d0 100644 --- a/MP42/MP42MkvImporter.m +++ b/MP42/MP42MkvImporter.m @@ -639,7 +639,10 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t sample->isSync = YES; sample->trackId = track.sourceId; - if (demuxHelper->previousSample) { + [self enqueue:sample]; + [sample release]; + + /*if (demuxHelper->previousSample) { uint64_t duration = sample->timestamp / (double)1000000.f * (mkv_TruncFloat(trackInfo->AV.Audio.SamplingFreq) / 1000.f) - demuxHelper->current_time; demuxHelper->previousSample->duration = duration; @@ -649,7 +652,7 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t } [demuxHelper->previousSample release]; - demuxHelper->previousSample = sample; + demuxHelper->previousSample = sample;*/ } }