When setting a new config, copy all the fields into our own config and
not only the ones we know about.
}
}
+static gboolean
+copy_config (GQuark field_id, const GValue * value, gpointer user_data)
+{
+ GstVideoConverter *convert = user_data;
+
+ gst_structure_id_set_value (convert->config, field_id, value);
+
+ return TRUE;
+}
+
/**
* gst_video_converter_set_config:
* @convert: a #GstVideoConverter
else
res = FALSE;
}
+ if (res)
+ gst_structure_foreach (config, copy_config, convert);
+
gst_structure_free (config);
return res;