Commit baf2fc1c authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

parent 914596ff
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment