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
0b776c28
Commit
0b776c28
authored
May 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b_daemon does not need to be exported through vlc_global
parent
7f682030
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
src/libvlc-common.c
src/libvlc-common.c
+6
-4
src/libvlc.h
src/libvlc.h
+0
-3
No files found.
src/libvlc-common.c
View file @
0b776c28
...
...
@@ -96,11 +96,13 @@
#include <vlc_vlm.h>
/*****************************************************************************
* The evil global variable
. We handle it
with care, don't worry.
* The evil global variable
s. We handle them
with care, don't worry.
*****************************************************************************/
static
libvlc_int_t
*
p_static_vlc
=
NULL
;
static
volatile
unsigned
int
i_instances
=
0
;
static
bool
b_daemon
=
false
;
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
@@ -324,7 +326,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
msg_Err
(
p_libvlc
,
"Unable to fork vlc to daemon mode"
);
b_exit
=
true
;
}
p_libvlc_global
->
b_daemon
=
true
;
b_daemon
=
true
;
/* lets check if we need to write the pidfile */
psz_pidfile
=
config_GetPsz
(
p_libvlc
,
"pidfile"
);
...
...
@@ -371,7 +373,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
close
(
STDOUT_FILENO
);
close
(
STDERR_FILENO
);
p_libvlc_global
->
b_daemon
=
true
;
b_daemon
=
true
;
}
#endif
}
...
...
@@ -1131,7 +1133,7 @@ int libvlc_InternalAddIntf( libvlc_int_t *p_libvlc,
}
#ifndef WIN32
if
(
vlc_global
()
->
b_daemon
&&
b_block
&&
!
psz_module
)
if
(
b_daemon
&&
b_block
&&
!
psz_module
)
{
/* Daemon mode hack.
* We prefer the dummy interface if none is specified. */
...
...
src/libvlc.h
View file @
0b776c28
...
...
@@ -120,9 +120,6 @@ struct libvlc_global_data_t
intf_thread_t
*
p_probe
;
///< Devices prober
/* Arch-specific variables */
#if !defined( WIN32 )
bool
b_daemon
;
#endif
#if defined( SYS_BEOS )
vlc_object_t
*
p_appthread
;
char
*
psz_vlcpath
;
...
...
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