[vlc-commits] directsound: the size in TimeGet() is not an mtime_t
Steve Lhomme
git at videolan.org
Thu Jun 14 16:41:25 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 7 17:06:55 2018 +0200| [709125ac1986f616ef218c59ac7acf34dcab5ab2] | committer: Steve Lhomme
directsound: the size in TimeGet() is not an mtime_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=709125ac1986f616ef218c59ac7acf34dcab5ab2
---
modules/audio_output/directsound.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/directsound.c b/modules/audio_output/directsound.c
index df0bf5128b..b6e4573384 100644
--- a/modules/audio_output/directsound.c
+++ b/modules/audio_output/directsound.c
@@ -143,7 +143,7 @@ static HRESULT TimeGet( aout_stream_sys_t *sys, mtime_t *delay )
{
DWORD read, status;
HRESULT hr;
- mtime_t size;
+ ssize_t size;
hr = IDirectSoundBuffer_GetStatus( sys->p_dsbuffer, &status );
if( hr != DS_OK )
@@ -155,7 +155,7 @@ static HRESULT TimeGet( aout_stream_sys_t *sys, mtime_t *delay )
if( hr != DS_OK )
return hr;
- size = (mtime_t)read - sys->i_last_read;
+ size = (ssize_t)read - sys->i_last_read;
/* GetCurrentPosition cannot be trusted if the return doesn't change
* Just return an error */
More information about the vlc-commits
mailing list