Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5af4a9fc
Commit
5af4a9fc
authored
May 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use intf_Create() directly whenever a module is specified
parent
46b0eb66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/libvlc.c
src/libvlc.c
+9
-9
No files found.
src/libvlc.c
View file @
5af4a9fc
...
...
@@ -885,7 +885,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
if
(
asprintf
(
&
psz_temp
,
"%s,none"
,
psz_module
)
!=
-
1
)
{
libvlc_InternalAddIntf
(
p_libvlc
,
psz_temp
);
intf_Create
(
p_libvlc
,
psz_temp
);
free
(
psz_temp
);
}
}
...
...
@@ -895,7 +895,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
/*
* Always load the hotkeys interface if it exists
*/
libvlc_InternalAddIntf
(
p_libvlc
,
"hotkeys,none"
);
intf_Create
(
p_libvlc
,
"hotkeys,none"
);
#ifdef HAVE_DBUS
/* loads dbus control interface if in one-instance mode
...
...
@@ -903,12 +903,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if
(
config_GetInt
(
p_libvlc
,
"one-instance"
)
>
0
||
(
config_GetInt
(
p_libvlc
,
"one-instance-when-started-from-file"
)
&&
config_GetInt
(
p_libvlc
,
"started-from-file"
)
)
)
libvlc_InternalAddIntf
(
p_libvlc
,
"dbus,none"
);
intf_Create
(
p_libvlc
,
"dbus,none"
);
/* Prevents the power management daemon from suspending the system
* when VLC is active */
if
(
config_GetInt
(
p_libvlc
,
"inhibit"
)
>
0
)
libvlc_InternalAddIntf
(
p_libvlc
,
"inhibit,none"
);
interface_Create
(
p_libvlc
,
"inhibit,none"
);
#endif
/*
...
...
@@ -918,21 +918,21 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
#ifdef HAVE_X11_XLIB_H
if
(
config_GetInt
(
p_libvlc
,
"disable-screensaver"
)
)
{
libvlc_InternalAddIntf
(
p_libvlc
,
"screensaver,none"
);
intf_Create
(
p_libvlc
,
"screensaver,none"
);
}
#endif
if
(
(
config_GetInt
(
p_libvlc
,
"file-logging"
)
>
0
)
&&
!
config_GetInt
(
p_libvlc
,
"syslog"
)
)
{
libvlc_InternalAddIntf
(
p_libvlc
,
"logger,none"
);
intf_Create
(
p_libvlc
,
"logger,none"
);
}
#ifdef HAVE_SYSLOG_H
if
(
config_GetInt
(
p_libvlc
,
"syslog"
)
>
0
)
{
char
*
logmode
=
var_CreateGetString
(
p_libvlc
,
"logmode"
);
var_SetString
(
p_libvlc
,
"logmode"
,
"syslog"
);
libvlc_InternalAddIntf
(
p_libvlc
,
"logger,none"
);
intf_Create
(
p_libvlc
,
"logger,none"
);
if
(
logmode
)
{
...
...
@@ -946,12 +946,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if
(
config_GetInt
(
p_libvlc
,
"show-intf"
)
>
0
)
{
libvlc_InternalAddIntf
(
p_libvlc
,
"showintf,none"
);
intf_Create
(
p_libvlc
,
"showintf,none"
);
}
if
(
config_GetInt
(
p_libvlc
,
"network-synchronisation"
)
>
0
)
{
libvlc_InternalAddIntf
(
p_libvlc
,
"netsync,none"
);
intf_Create
(
p_libvlc
,
"netsync,none"
);
}
#ifdef WIN32
...
...
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