audioconvert: set mix-matrix when user changes it to empty
authorJurijs Satcs <jurijs.satcs@veset.tv>
Thu, 29 Feb 2024 08:30:47 +0000 (09:30 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 1 Mar 2024 11:58:57 +0000 (11:58 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6243>

subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c

index 45bfc8a51c60043cf53a5cac7ba9d9d5cb38f90b..4cf55ffc71927f651fdf5fcc91785adfa8bc4d9d 100644 (file)
@@ -1016,6 +1016,7 @@ gst_audio_convert_set_property (GObject * object, guint prop_id,
       break;
     case PROP_MIX_MATRIX:
       if (!gst_value_array_get_size (value)) {
+        g_value_copy (value, &this->mix_matrix);
         this->mix_matrix_is_set = TRUE;
       } else {
         const GValue *first_row = gst_value_array_get_value (value, 0);