[vlc-devel] [PATCH] directsound: make StreamTimeGet() return logic similar to OutputTimeGet()

Steve Lhomme robUx4 at videolabs.io
Tue Mar 17 13:59:43 CET 2015


Fixes #14186

http://streams.videolan.org/misc/test-files-ccc/%5bCCCP%5d_Mega_Audio_Test.mkv still stutters with Vorbis 6ch, it doesn't in 2.2.0
---
 modules/audio_output/directsound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/directsound.c b/modules/audio_output/directsound.c
index 2a1a06d..e695ee1 100644
--- a/modules/audio_output/directsound.c
+++ b/modules/audio_output/directsound.c
@@ -178,7 +178,7 @@ static HRESULT TimeGet( aout_stream_sys_t *sys, mtime_t *delay )
 
 static HRESULT StreamTimeGet( aout_stream_t *s, mtime_t *delay )
 {
-    return TimeGet( s->sys, delay );
+    return (TimeGet( s->sys, delay ) == DS_OK) ? 0 : -1;
 }
 
 static int OutputTimeGet( audio_output_t *aout, mtime_t *delay )
-- 
2.3.2




More information about the vlc-devel mailing list