mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
v4l2src: fix a couple of minor leaks
This commit is contained in:
parent
c756fd6a55
commit
cde3ce38e1
1 changed files with 3 additions and 3 deletions
|
@ -1717,7 +1717,7 @@ gst_v4l2_object_add_interlace_mode (GstV4l2Object * v4l2object,
|
|||
GValue interlace_enum = { 0, };
|
||||
g_value_init (&interlace_enum, G_TYPE_STRING);
|
||||
g_value_set_string (&interlace_enum, mode_strings[interlace_mode]);
|
||||
gst_value_list_append_value (&interlace_formats, &interlace_enum);
|
||||
gst_value_list_append_and_take_value (&interlace_formats, &interlace_enum);
|
||||
}
|
||||
|
||||
memset (&fmt, 0, sizeof (fmt));
|
||||
|
@ -1732,11 +1732,11 @@ gst_v4l2_object_add_interlace_mode (GstV4l2Object * v4l2object,
|
|||
GValue interlace_enum = { 0, };
|
||||
g_value_init (&interlace_enum, G_TYPE_STRING);
|
||||
g_value_set_string (&interlace_enum, mode_strings[interlace_mode]);
|
||||
gst_value_list_append_value (&interlace_formats, &interlace_enum);
|
||||
gst_value_list_append_and_take_value (&interlace_formats, &interlace_enum);
|
||||
}
|
||||
|
||||
gst_v4l2src_value_simplify (&interlace_formats);
|
||||
gst_structure_set_value (s, "interlace-mode", &interlace_formats);
|
||||
gst_structure_take_value (s, "interlace-mode", &interlace_formats);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue