@@ -1,86 +0,0 @@
1−http://pkgs.fedoraproject.org/gitweb/?p=psimedia.git;a=blob_plain;f=psimedia-remove-v4l.patch;hb=HEAD
2−
3−--- a/gstprovider/deviceenum/deviceenum_unix.cpp
4−+++ b/gstprovider/deviceenum/deviceenum_unix.cpp
5−@@ -35,7 +35,7 @@
6− # include <sys/stat.h>
7− # include <dirent.h>
8− # include <sys/ioctl.h>
9−-# include <linux/videodev.h>
10−+# include <linux/videodev2.h>
11− #endif
12−
13− namespace DeviceEnum {
14−@@ -478,72 +478,7 @@
15− // v4l detection scheme adapted from PWLib (used by Ekiga/Gnomemeeting)
16− static QList<Item> get_v4l_items()
17− {
18−-#ifdef Q_OS_LINUX
19−- QList<Item> out;
20−-
21−- QList<V4LName> list = get_v4l_names("/sys/class/video4linux", true);
22−- if(list.isEmpty())
23−- list = get_v4l_names("/proc/video/dev", false);
24−-
25−- // if we can't find anything, then do a raw scan for possibilities
26−- if(list.isEmpty())
27−- {
28−- QStringList possible = scan_for_videodevs("/dev");
29−- foreach(QString str, possible)
30−- {
31−- V4LName v;
32−- v.dev = str;
33−- list += v;
34−- }
35−- }
36−-
37−- for(int n = 0; n < list.count(); ++n)
38−- {
39−- V4LName &v = list[n];
40−-
41−- // if we already have a friendly name then we'll skip the confirm
42−- // in order to save resources. the only real drawback here that
43−- // I can think of is if the device isn't a capture type. but
44−- // what does it mean to have a V4L device that isn't capture??
45−- if(v.friendlyName.isEmpty())
46−- {
47−- int fd = open(QFile::encodeName(v.dev).data(), O_RDONLY | O_NONBLOCK);
48−- if(fd == -1)
49−- continue;
50−-
51−- // get video capabilities and close
52−- struct video_capability caps;
53−- memset(&caps, 0, sizeof(caps));
54−- int ret = ioctl(fd, VIDIOCGCAP, &caps);
55−- close(fd);
56−- if(ret == -1)
57−- continue;
58−-
59−- if(!(caps.type & VID_TYPE_CAPTURE))
60−- continue;
61−-
62−- v.friendlyName = caps.name;
63−- }
64−-
65−- Item i;
66−- i.type = Item::Video;
67−- i.dir = Item::Input;
68−- i.name = v.friendlyName;
69−- i.driver = "v4l";
70−- i.id = v.dev;
71−-
72−- // HACK
73−- if(v.friendlyName == "Labtec Webcam Notebook")
74−- i.explicitCaptureSize = QSize(640, 480);
75−-
76−- out += i;
77−- }
78−-
79−- return out;
80−-#else
81−- // return empty list if non-linux
82− return QList<Item>();
83−-#endif
84− }
85−
86− static QList<Item> get_v4l2_items()