[pulseaudio-commits] r1420 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Jan 4 06:17:58 PST 2007


Author: ossman
Date: Thu Jan  4 15:17:57 2007
New Revision: 1420

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1420&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Free stream objects when they've been invalidated.

Modified:
    trunk/src/utils/padsp.c

Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=3D1=
420&root=3Dpulseaudio&r1=3D1419&r2=3D1420&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Thu Jan  4 15:17:57 2007
@@ -913,10 +913,14 @@
                 debug(DEBUG_LEVEL_NORMAL,
                     __FILE__": pa_stream_connect_playback() failed: %s\n",
                     pa_strerror(pa_context_errno(i->context)));
+                pa_stream_unref(i->play_stream);
+                i->play_stream =3D NULL;
             } else if (s =3D=3D i->rec_stream) {
                 debug(DEBUG_LEVEL_NORMAL,
                     __FILE__": pa_stream_connect_record() failed: %s\n",
                     pa_strerror(pa_context_errno(i->context)));
+                pa_stream_unref(i->rec_stream);
+                i->rec_stream =3D NULL;
             }
             fd_info_shutdown(i);
             break;




More information about the pulseaudio-commits mailing list