mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
v4l2: fix compiler warning due to c99-ism
This commit is contained in:
parent
91e858dcbe
commit
92e4ecef4c
1 changed files with 3 additions and 1 deletions
|
@ -106,11 +106,13 @@ gst_v4l2_codec_probe_levels (const GstV4l2Codec * codec, gint video_fd)
|
||||||
query_menu.index = query_ctrl.maximum;
|
query_menu.index = query_ctrl.maximum;
|
||||||
|
|
||||||
if (ioctl (video_fd, VIDIOC_QUERYMENU, &query_menu) >= 0) {
|
if (ioctl (video_fd, VIDIOC_QUERYMENU, &query_menu) >= 0) {
|
||||||
|
gint32 i;
|
||||||
|
|
||||||
controls = g_new0 (GValue, 1);
|
controls = g_new0 (GValue, 1);
|
||||||
g_value_init (controls, GST_TYPE_LIST);
|
g_value_init (controls, GST_TYPE_LIST);
|
||||||
|
|
||||||
/* Assume that all levels below the highest one reported by the driver are supported. */
|
/* Assume that all levels below the highest one reported by the driver are supported. */
|
||||||
for (gint32 i = query_ctrl.minimum; i <= query_ctrl.maximum; i++) {
|
for (i = query_ctrl.minimum; i <= query_ctrl.maximum; i++) {
|
||||||
GValue value = G_VALUE_INIT;
|
GValue value = G_VALUE_INIT;
|
||||||
|
|
||||||
g_value_init (&value, G_TYPE_STRING);
|
g_value_init (&value, G_TYPE_STRING);
|
||||||
|
|
Loading…
Reference in a new issue