mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gst/gstpad.c (fixate_value): Use array functions for arrays.
Original commit message from CVS: 2005-11-28 Andy Wingo <wingo@pobox.com> * gst/gstpad.c (fixate_value): Use array functions for arrays.
This commit is contained in:
parent
5fa6a29e9f
commit
3cf09efb92
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-11-28 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/gstpad.c (fixate_value): Use array functions for arrays.
|
||||
|
||||
2005-11-28 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* tools/gst-launch.c: (main):
|
||||
|
|
|
@ -1943,15 +1943,15 @@ fixate_value (GValue * dest, const GValue * src)
|
|||
guint n;
|
||||
|
||||
g_value_init (dest, GST_TYPE_ARRAY);
|
||||
for (n = 0; n < gst_value_list_get_size (src); n++) {
|
||||
for (n = 0; n < gst_value_array_get_size (src); n++) {
|
||||
GValue kid = { 0 };
|
||||
const GValue *orig_kid = gst_value_list_get_value (src, n);
|
||||
const GValue *orig_kid = gst_value_array_get_value (src, n);
|
||||
|
||||
if (!fixate_value (&kid, orig_kid))
|
||||
gst_value_init_and_copy (&kid, orig_kid);
|
||||
else
|
||||
res = TRUE;
|
||||
gst_value_list_append_value (dest, &kid);
|
||||
gst_value_array_append_value (dest, &kid);
|
||||
g_value_unset (&kid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue