rawaudioparse: Fix potential NULL pointer dereference

CID 1364606
This commit is contained in:
Sebastian Dröge 2017-02-28 15:26:36 +02:00
parent 033057cf74
commit 9a62892428

View file

@ -447,7 +447,7 @@ gst_raw_audio_parse_set_property (GObject * object, guint prop_id,
gst_raw_audio_parse_set_config_channels (&
(raw_audio_parse->properties_config), config->num_channels, 0,
TRUE);
} else {
} else if (valarray != NULL) {
/* Non-NULL value given. Make sure the channel_positions
* array in the properties config has enough room, and that
* the num_channels value equals the array length. Then copy