volume: Only allocate a mute value array if a control source exists for the mute...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 12 Mar 2010 14:44:50 +0000 (15:44 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 12 Mar 2010 14:49:17 +0000 (15:49 +0100)
gst/volume/gstvolume.c

index bc961433f4e68ade3e89f137d3c95cb4196e210c..5f442d4b2259cc51e6936215663951d68d26bb55 100644 (file)
@@ -921,7 +921,7 @@ volume_transform_ip (GstBaseTransform * base, GstBuffer * outbuf)
 
     ts = gst_segment_to_stream_time (&base->segment, GST_FORMAT_TIME, ts);
 
-    if (self->mutes_count < nsamples) {
+    if (self->mutes_count < nsamples && mute_csource) {
       self->mutes = g_realloc (self->mutes, sizeof (gboolean) * nsamples);
       self->mutes_count = nsamples;
     }