[pulseaudio-commits] r1854 - /branches/lennart/src/modules/module-alsa-sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Sep 18 05:53:43 PDT 2007


Author: lennart
Date: Tue Sep 18 14:53:42 2007
New Revision: 1854

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1854&root=pulseaudio&view=rev
Log:
actually close the alsa device before we try to reopen it as plughw

Modified:
    branches/lennart/src/modules/module-alsa-sink.c

Modified: branches/lennart/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/module-alsa-sink.c?rev=1854&root=pulseaudio&r1=1853&r2=1854&view=diff
==============================================================================
--- branches/lennart/src/modules/module-alsa-sink.c (original)
+++ branches/lennart/src/modules/module-alsa-sink.c Tue Sep 18 14:53:42 2007
@@ -759,6 +759,9 @@
                     pa_log_debug("Opening the device as '%s' didn't work, retrying with '%s'.", dev, d);
                     pa_xfree(dev);
                     dev = d;
+
+                    snd_pcm_close(u->pcm_handle);
+                    u->pcm_handle = NULL;
                     continue;
                 }
             }




More information about the pulseaudio-commits mailing list