<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
The patch works!<BR>
<BR>
I can finally use pavucontrol (1.0-1) for more than one second.<BR>
<BR>
Thanks a lot for the help provided.<BR>
<BR>
--<BR>
John.<BR>
<BR>
On Sun, 2014-02-23 at 05:01 +0100, Vincent Lefevre wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Control: tags -1 patch

On 2014-02-23 04:52:46 +0100, Vincent Lefevre wrote:
<FONT COLOR="#737373">> data can be NULL and the code is obviously buggy.</FONT>

gnome-control-center seemed to have similar code, thus was also buggy:

  <A HREF="https://bugzilla.gnome.org/show_bug.cgi?id=689079">https://bugzilla.gnome.org/show_bug.cgi?id=689079</A>

which has a patch:

  <A HREF="https://bug689079.bugzilla-attachments.gnome.org/attachment.cgi?id=229897">https://bug689079.bugzilla-attachments.gnome.org/attachment.cgi?id=229897</A>

This would give here:

--- src/mainwindow.cc~  2012-05-19 23:17:28.000000000 +0200
+++ src/mainwindow.cc   2014-02-23 04:58:35.142596137 +0100
@@ -379,6 +379,11 @@
         return;
     }
 
+    if (!data) {
+        pa_stream_drop(s);
+        return;
+    }
+
     assert(length > 0);
     assert(length % sizeof(float) == 0);
 

Could you try this patch?

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>