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
8da13714
Commit
8da13714
authored
Nov 06, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tab/trailing spaces police
parent
d4d67e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
modules/misc/probe/hal.c
modules/misc/probe/hal.c
+14
-14
No files found.
modules/misc/probe/hal.c
View file @
8da13714
...
...
@@ -111,7 +111,7 @@ static void Close( vlc_object_t *p_this )
static
int
GetAllDevices
(
device_probe_t
*
p_probe
,
device_t
***
ppp_devices
)
{
/// \todo : fill the dst array
/// \todo : fill the dst array
return
p_probe
->
p_sys
->
i_devices
;
}
...
...
@@ -127,8 +127,8 @@ static void Update( device_probe_t * p_probe )
/* CD/DVD */
if
(
(
devices
=
libhal_find_device_by_capability
(
p_sys
->
p_ctx
,
"storage.cdrom"
,
&
i_devices
,
NULL
)
)
)
"storage.cdrom"
,
&
i_devices
,
NULL
)
)
)
{
for
(
i
=
0
;
i
<
i_devices
;
i
++
)
{
...
...
@@ -169,9 +169,9 @@ static device_t * ParseDisc( device_probe_t *p_probe, char *psz_device )
device_t
*
p_dev
;
char
*
block_dev
;
dbus_bool_t
b_dvd
;
if
(
!
libhal_device_property_exists
(
p_sys
->
p_ctx
,
psz_device
,
"storage.cdrom.dvd"
,
NULL
)
)
"storage.cdrom.dvd"
,
NULL
)
)
return
NULL
;
p_dev
=
(
device_t
*
)
malloc
(
sizeof
(
device_t
)
);
...
...
@@ -208,17 +208,17 @@ static void UpdateMedia( device_probe_t *p_probe, device_t *p_dev )
/* Find the media in the drive */
matching_media
=
libhal_manager_find_device_string_match
(
p_sys
->
p_ctx
,
"block.device"
,
p_dev
->
psz_uri
,
&
i_matching
,
NULL
);
"block.device"
,
p_dev
->
psz_uri
,
&
i_matching
,
NULL
);
for
(
i
=
0
;
i
<
i_matching
;
i
++
)
{
if
(
libhal_device_property_exists
(
p_sys
->
p_ctx
,
matching_media
[
i
],
if
(
libhal_device_property_exists
(
p_sys
->
p_ctx
,
matching_media
[
i
],
"volume.disc.type"
,
NULL
)
)
{
char
*
psz_media_name
=
libhal_device_get_property_string
(
p_sys
->
p_ctx
,
matching_media
[
i
],
"volume.label"
,
NULL
);
{
char
*
psz_media_name
=
libhal_device_get_property_string
(
p_sys
->
p_ctx
,
matching_media
[
i
],
"volume.label"
,
NULL
);
if
(
psz_media_name
)
{
if
(
p_dev
->
psz_name
&&
strcmp
(
p_dev
->
psz_name
,
psz_media_name
))
...
...
@@ -235,7 +235,7 @@ static void UpdateMedia( device_probe_t *p_probe, device_t *p_dev )
if
(
libhal_device_get_property_bool
(
p_sys
->
p_ctx
,
matching_media
[
i
],
"volume.disc.is_videodvd"
,
NULL
)
)
p_dev
->
i_media_type
=
MEDIA_TYPE_DVD
;
p_dev
->
i_media_type
=
MEDIA_TYPE_DVD
;
else
if
(
libhal_device_get_property_bool
(
p_sys
->
p_ctx
,
matching_media
[
i
],
"volume.disc.is_vcd"
,
NULL
)
||
...
...
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