mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
video-converter: copy config fields
When setting a new config, copy all the fields into our own config and not only the ones we know about.
This commit is contained in:
parent
28e5ed00de
commit
72b30ac5ed
1 changed files with 13 additions and 0 deletions
|
@ -599,6 +599,16 @@ video_dither_halftone (GstVideoConverter * convert, guint16 * pixels, int j)
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
@ -653,6 +663,9 @@ gst_video_converter_set_config (GstVideoConverter * convert,
|
|||
else
|
||||
res = FALSE;
|
||||
}
|
||||
if (res)
|
||||
gst_structure_foreach (config, copy_config, convert);
|
||||
|
||||
gst_structure_free (config);
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue