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
b173cc47
Commit
b173cc47
authored
Feb 12, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bin/darwinvlc: readd exit handler for the case the macosx interface is not used
parent
c0ebd894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
bin/darwinvlc.c
bin/darwinvlc.c
+9
-0
No files found.
bin/darwinvlc.c
View file @
b173cc47
...
...
@@ -55,6 +55,12 @@ static bool signal_ignored (int signum)
?
(
void
*
)
sa
.
sa_sigaction
:
(
void
*
)
sa
.
sa_handler
)
==
SIG_IGN
;
}
static
void
vlc_kill
(
void
*
data
)
{
pthread_t
*
ps
=
data
;
pthread_kill
(
*
ps
,
SIGTERM
);
}
static
void
exit_timeout
(
int
signum
)
{
(
void
)
signum
;
...
...
@@ -204,12 +210,15 @@ int main( int i_argc, const char *ppsz_argv[] )
vlc_enable_override
();
pthread_t
self
=
pthread_self
();
/* Initialize libvlc */
libvlc_instance_t
*
vlc
=
libvlc_new
(
argc
,
argv
);
if
(
vlc
==
NULL
)
return
1
;
int
ret
=
1
;
libvlc_set_exit_handler
(
vlc
,
vlc_kill
,
&
self
);
libvlc_set_app_id
(
vlc
,
"org.VideoLAN.VLC"
,
PACKAGE_VERSION
,
PACKAGE_NAME
);
libvlc_set_user_agent
(
vlc
,
"VLC media player"
,
"VLC/"
PACKAGE_VERSION
);
...
...
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