mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rawaudioparse: Fix potential NULL pointer dereference
CID 1364606
This commit is contained in:
parent
033057cf74
commit
9a62892428
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue