[Bug 743108] Feature request: filter to monitored v4l2 radio device
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Jan 18 19:18:22 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=743108
GStreamer | gst-plugins-good | 1.4.5
--- Comment #1 from budaservantes at gmail.com 2015-01-19 03:18:18 UTC ---
Something that can be done with GUdevDevice:
device_file = g_udev_device_get_device_file (udevice);
if (device_file == NULL)
{
GST_WARNING ("Error getting V4L device");
return;
}
/* vbi devices support capture capability too, but cannot be used,
* so detect them by device name */
if (strstr (device_file, "vbi"))
{
GST_INFO ("Skipping vbi device: %s", device_file);
return;
}
v4l_version = g_udev_device_get_property_as_int (udevice, "ID_V4L_VERSION");
if (v4l_version == 2 || v4l_version == 1)
{
const char *caps;
caps = g_udev_device_get_property (udevice, "ID_V4L_CAPABILITIES");
if (caps == NULL || strstr (caps, ":capture:") == NULL)
{
GST_WARNING ("Device %s seems to not have the capture capability, (radio
tuner?)"
"Removing it from device list.", device_file);
return;
}
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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