mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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:
parent
18917de956
commit
62d167b551
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue