Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
892a2b1a
Commit
892a2b1a
authored
Aug 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udev: minor simplification
parent
fdc99f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/services_discovery/udev.c
modules/services_discovery/udev.c
+2
-2
No files found.
modules/services_discovery/udev.c
View file @
892a2b1a
...
@@ -538,7 +538,7 @@ static char *disc_get_mrl (struct udev_device *dev)
...
@@ -538,7 +538,7 @@ static char *disc_get_mrl (struct udev_device *dev)
if
(
val
&&
!
strcmp
(
val
,
"blank"
))
if
(
val
&&
!
strcmp
(
val
,
"blank"
))
return
NULL
;
/* ignore empty drives and virgin recordable discs */
return
NULL
;
/* ignore empty drives and virgin recordable discs */
const
char
*
scheme
=
"invalid"
;
const
char
*
scheme
=
NULL
;
val
=
udev_device_get_property_value
(
dev
,
val
=
udev_device_get_property_value
(
dev
,
"ID_CDROM_MEDIA_TRACK_COUNT_AUDIO"
);
"ID_CDROM_MEDIA_TRACK_COUNT_AUDIO"
);
if
(
val
&&
atoi
(
val
))
if
(
val
&&
atoi
(
val
))
...
@@ -558,7 +558,7 @@ static char *disc_get_mrl (struct udev_device *dev)
...
@@ -558,7 +558,7 @@ static char *disc_get_mrl (struct udev_device *dev)
/* We didn't get any property that could tell we have optical disc
/* We didn't get any property that could tell we have optical disc
that we can play */
that we can play */
if
(
!
strcmp
(
scheme
,
"invalid"
)
)
if
(
scheme
==
NULL
)
return
NULL
;
return
NULL
;
val
=
udev_device_get_devnode
(
dev
);
val
=
udev_device_get_devnode
(
dev
);
...
...
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