[vlc-commits] oss: use SNDCTL_DSP_HALT in Flush() as in Stop() (fixes #9760)

Rémi Denis-Courmont git at videolan.org
Mon Nov 4 22:10:14 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov  4 23:09:06 2013 +0200| [cafdd029a182779f8e93aeece0406d5a689f9612] | committer: Rémi Denis-Courmont

oss: use SNDCTL_DSP_HALT in Flush() as in Stop() (fixes #9760)

(There does not appear to be much logic there, this might be a driver
issue or confusing documentation.)

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

 modules/audio_output/oss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/oss.c b/modules/audio_output/oss.c
index 69c6b60..940718f 100644
--- a/modules/audio_output/oss.c
+++ b/modules/audio_output/oss.c
@@ -282,7 +282,7 @@ static void Flush (audio_output_t *aout, bool wait)
 
     if (wait)
         return; /* drain is implicit with OSS */
-    ioctl (fd, SNDCTL_DSP_HALT_OUTPUT, NULL);
+    ioctl (fd, SNDCTL_DSP_HALT, NULL);
 }
 
 static int VolumeSync (audio_output_t *aout)



More information about the vlc-commits mailing list