volume: Only allocate a mute value array if a control source exists for the mute property

This commit is contained in:
Sebastian Dröge 2010-03-12 15:44:50 +01:00
parent 914596ffb6
commit baf2fc1c58

View 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;
}