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
4d636fa3
Commit
4d636fa3
authored
Aug 01, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call libvlc_set_exit_handler() before the interfaces and playlist start
parent
d2c08b11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
bin/vlc.c
bin/vlc.c
+2
-4
No files found.
bin/vlc.c
View file @
4d636fa3
...
...
@@ -203,6 +203,8 @@ int main( int i_argc, const char *ppsz_argv[] )
if
(
vlc
==
NULL
)
goto
out
;
pthread_t
self
=
pthread_self
();
libvlc_set_exit_handler
(
vlc
,
vlc_kill
,
&
self
);
libvlc_set_user_agent
(
vlc
,
"VLC media player"
,
NULL
);
#if !defined (HAVE_MAEMO) && !defined __APPLE__
...
...
@@ -213,10 +215,6 @@ int main( int i_argc, const char *ppsz_argv[] )
libvlc_playlist_play
(
vlc
,
-
1
,
0
,
NULL
);
/* Wait for a termination signal */
pthread_t
self
=
pthread_self
();
libvlc_set_exit_handler
(
vlc
,
vlc_kill
,
&
self
);
if
(
signal_ignored
(
SIGHUP
))
/* <- needed to handle nohup properly */
sigdelset
(
&
set
,
SIGHUP
);
sigdelset
(
&
set
,
SIGPIPE
);
...
...
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