[pulseaudio-commits] r2439 - /branches/glitch-free/src/pulse/stream.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu May 15 16:16:29 PDT 2008


Author: lennart
Date: Fri May 16 01:16:28 2008
New Revision: 2439

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2439&root=pulseaudio&view=rev
Log:
don't access stream before it is valid

Modified:
    branches/glitch-free/src/pulse/stream.c

Modified: branches/glitch-free/src/pulse/stream.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulse/stream.c?rev=2439&root=pulseaudio&r1=2438&r2=2439&view=diff
==============================================================================
--- branches/glitch-free/src/pulse/stream.c (original)
+++ branches/glitch-free/src/pulse/stream.c Fri May 16 01:16:28 2008
@@ -370,7 +370,7 @@
 
     if (c->version >= 13) {
 
-        if (s->direction == PA_STREAM_RECORD) {
+        if (command == PA_COMMAND_RECORD_STREAM_MOVED) {
             if (pa_tagstruct_getu32(t, &maxlength) < 0 ||
                 pa_tagstruct_getu32(t, &fragsize) < 0 ||
                 pa_tagstruct_get_usec(t, &usec) < 0) {




More information about the pulseaudio-commits mailing list