Commit 198ca903 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qtsound: use VLC_TS_0, remove useless data_Set()

parent 3f87b149
......@@ -97,7 +97,6 @@ vlc_module_end ()
p_qtsound = p_demux;
currentAudioBuffer = nil;
date_Init(&date, 44100, 1);
date_Set(&date,0);
currentPts = 0;
previousPts = 0;
}
......@@ -117,7 +116,7 @@ vlc_module_end ()
@synchronized (self) {
numberOfSamples = [sampleBuffer numberOfSamples];
date_Increment(&date,numberOfSamples);
currentPts = date_Get(&date);
currentPts = VLC_TS_0 + date_Get(&date);
tempAudioBufferList = [sampleBuffer audioBufferListWithOptions:0];
if (tempAudioBufferList->mNumberBuffers == 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment