audiomixmatrix: Don't crash if matrix is unset

Fix a crash ff one set in_channels/out_channels to non-zero, and then
get the matrix property.
This commit is contained in:
Nicolas Dufresne 2017-03-27 15:10:45 -04:00
parent 18917de956
commit 62d167b551

View file

@ -356,6 +356,9 @@ gst_audio_mix_matrix_get_property (GObject * object, guint prop_id,
case PROP_MATRIX:{
gint in, out;
if (self->matrix == NULL)
break;
for (out = 0; out < self->out_channels; out++) {
GValue row = G_VALUE_INIT;
g_value_init (&row, GST_TYPE_ARRAY);