mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
volume: Only allocate a mute value array if a control source exists for the mute property
This commit is contained in:
parent
914596ffb6
commit
baf2fc1c58
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue