[Bug 759780] gstv4l2deviceprovider: Add the device and sysfs paths to the GstDevice properties

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Dec 26 04:45:56 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=759780

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #317880|none                        |reviewed
             status|                            |

--- Comment #5 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Comment on attachment 317880
  --> https://bugzilla.gnome.org/attachment.cgi?id=317880
v4l2deviceprovider: add properties to the device

>+  str = g_strdup_printf ("%u", v4l2obj->vcap.version);
>+  gst_structure_set (props, "v4l2.device.version", G_TYPE_STRING, str, NULL);
>+  g_free (str);
>+  str = g_strdup_printf ("0x%08x", v4l2obj->vcap.capabilities);
>+  gst_structure_set (props, "v4l2.device.capabilities", G_TYPE_STRING, str,
>+      NULL);
>+  g_free (str);
>+  str = g_strdup_printf ("0x%08x", v4l2obj->vcap.device_caps);
>+  gst_structure_set (props, "v4l2.device.device_caps", G_TYPE_STRING, str,
>+      NULL);
>+  g_free (str);

Hrm, wonder whether these should really be exposed as a hex-string, rather than
G_TYPE_UINT, or even a registered flags/enum type?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list