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
f3a44a5f
Commit
f3a44a5f
authored
Nov 30, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc: return non-zero exit code if starting failed
parent
405da960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
bin/vlc.c
bin/vlc.c
+5
-6
No files found.
bin/vlc.c
View file @
f3a44a5f
...
...
@@ -234,8 +234,9 @@ int main( int i_argc, const char *ppsz_argv[] )
/* Initialize libvlc */
libvlc_instance_t
*
vlc
=
libvlc_new
(
argc
,
argv
);
if
(
vlc
==
NULL
)
goto
out
;
return
1
;
int
ret
=
1
;
libvlc_set_exit_handler
(
vlc
,
vlc_kill
,
&
self
);
libvlc_set_user_agent
(
vlc
,
"VLC media player"
,
"VLC/"
PACKAGE_VERSION
);
...
...
@@ -275,15 +276,13 @@ int main( int i_argc, const char *ppsz_argv[] )
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
NULL
);
alarm
(
3
);
ret
=
0
;
/* Cleanup */
out:
if
(
vlc
!=
NULL
)
libvlc_release
(
vlc
);
libvlc_release
(
vlc
);
#ifdef __OS2__
for
(
int
i
=
2
;
i
<
argc
;
i
++
)
free
(
argv
[
i
]);
#endif
return
0
;
return
ret
;
}
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