[vlc-commits] qtsound: use VLC_TS_0, remove useless data_Set()

Rémi Denis-Courmont git at videolan.org
Wed May 2 16:13:57 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May  2 17:08:13 2018 +0300| [198ca903b3228918574f87caf4150ba78fd7b139] | committer: Rémi Denis-Courmont

qtsound: use VLC_TS_0, remove useless data_Set()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=198ca903b3228918574f87caf4150ba78fd7b139
---

 modules/access/qtsound.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/access/qtsound.m b/modules/access/qtsound.m
index b26e36a8d1..93ce8cffae 100644
--- a/modules/access/qtsound.m
+++ b/modules/access/qtsound.m
@@ -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) {



More information about the vlc-commits mailing list