]> git.sesse.net Git - vlc/commitdiff
Cast read size to signed before the substraction.
authorDenis Charmet <typx@dinauz.org>
Tue, 29 Jul 2014 21:51:32 +0000 (23:51 +0200)
committerDenis Charmet <typx@dinauz.org>
Tue, 29 Jul 2014 21:51:32 +0000 (23:51 +0200)
Close #11481

modules/audio_output/directsound.c

index 8ec0fd665ecc35bc3b5d06cce2f0a8764853355e..7db4458383ed0abafbae95e61fd2586f5058e662 100644 (file)
@@ -155,7 +155,7 @@ static HRESULT TimeGet( aout_stream_sys_t *sys, mtime_t *delay )
     if( hr != DS_OK )
         return hr;
 
-    size = read - sys->i_last_read;
+    size = (mtime_t)read - sys->i_last_read;
 
     /* GetCurrentPosition cannot be trusted if the return doesn't change
      * Just return an error */