Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ff79bc85
Commit
ff79bc85
authored
Apr 08, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't run hal_initialize() twice. Bug introduced in [19692].
parent
f449bc75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
src/libvlc-common.c
src/libvlc-common.c
+4
-9
No files found.
src/libvlc-common.c
View file @
ff79bc85
...
...
@@ -1880,12 +1880,11 @@ static void InitDeviceValues( libvlc_int_t *p_vlc )
char
**
devices
=
NULL
;
char
*
block_dev
=
NULL
;
dbus_bool_t
b_dvd
;
#ifdef HAVE_HAL_1
DBusConnection
*
p_connection
=
NULL
;
DBusError
error
;
#endif
#ifdef HAVE_HAL_1
ctx
=
libhal_ctx_new
();
if
(
!
ctx
)
return
;
dbus_error_init
(
&
error
);
...
...
@@ -1896,17 +1895,13 @@ static void InitDeviceValues( libvlc_int_t *p_vlc )
dbus_error_free
(
&
error
);
return
;
}
#else
ctx
=
hal_initialize
(
NULL
,
FALSE
);
if
(
!
ctx
)
return
;
#endif
#ifdef HAVE_HAL_1
libhal_ctx_set_dbus_connection
(
ctx
,
p_connection
);
if
(
libhal_ctx_init
(
ctx
,
&
error
)
)
#else
if
(
(
ctx
=
hal_initialize
(
NULL
,
FALSE
)
)
)
ctx
=
hal_initialize
(
NULL
,
FALSE
);
if
(
ctx
)
#endif
{
#ifdef HAVE_HAL_1
if
(
(
devices
=
libhal_get_all_devices
(
ctx
,
&
i_devices
,
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