Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0361794c
Commit
0361794c
authored
Jul 11, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udev: drop V4L1 support
parent
566fe8b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+3
-3
No files found.
modules/services_discovery/udev.c
View file @
0361794c
...
@@ -409,13 +409,13 @@ static bool is_v4l_legacy (struct udev_device *dev)
...
@@ -409,13 +409,13 @@ static bool is_v4l_legacy (struct udev_device *dev)
static
char
*
v4l_get_mrl
(
struct
udev_device
*
dev
)
static
char
*
v4l_get_mrl
(
struct
udev_device
*
dev
)
{
{
/* Determine media location */
/* Determine media location */
const
char
*
scheme
=
"v4l2"
;
if
(
is_v4l_legacy
(
dev
))
if
(
is_v4l_legacy
(
dev
))
scheme
=
"v4l"
;
return
NULL
;
const
char
*
node
=
udev_device_get_devnode
(
dev
);
const
char
*
node
=
udev_device_get_devnode
(
dev
);
char
*
mrl
;
char
*
mrl
;
if
(
asprintf
(
&
mrl
,
"
%s://%s"
,
scheme
,
node
)
==
-
1
)
if
(
asprintf
(
&
mrl
,
"
v4l2://%s"
,
node
)
==
-
1
)
mrl
=
NULL
;
mrl
=
NULL
;
return
mrl
;
return
mrl
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment