$ git clone http://tcclient.ion.nu/tc_client.git
commit ae93aa463c2a6f61b953c8afb95fb30b03541f64
Author: Alicia <...>
Date:   Wed Feb 24 14:43:28 2016 +0100

    tc_client-gtk: initialize audio samples of new cams to 0 (experimental audio support)

diff --git a/ChangeLog b/ChangeLog
index 647a7fb..232de80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ tc_client-gtk: if HOME is not set use "." instead.
 tc_client-gtk: windows compat: don't try to run empty commands.
 tc_client-gtk: make timestamps gray and nicknames bold.
 tc_client-gtk: added option to change font size in the chat.
+tc_client-gtk: initialize audio samples of new cams to 0 (experimental audio support)
 0.37:
 Reimplemented announcement of moderators.
 Reimplemented announcement of people cammed up when joining.
diff --git a/utilities/gtk/media.c b/utilities/gtk/media.c
index a804437..0b487c9 100644
--- a/utilities/gtk/media.c
+++ b/utilities/gtk/media.c
@@ -140,6 +140,10 @@ struct camera* camera_new(void)
 {
   ++camcount;
   cams=realloc(cams, sizeof(struct camera)*camcount);
+#if defined(HAVE_AVRESAMPLE) || defined(HAVE_SWRESAMPLE)
+  cams[camcount-1].samples=0;
+  cams[camcount-1].samplecount=0;
+#endif
   return &cams[camcount-1];
 }