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
697041f6
Commit
697041f6
authored
Sep 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc: only print error message if LibVLC is initialized
parent
8e290e42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
bin/vlc.c
bin/vlc.c
+4
-9
No files found.
bin/vlc.c
View file @
697041f6
...
...
@@ -49,8 +49,6 @@ extern char *FromLocale (const char *);
*****************************************************************************/
int
main
(
int
i_argc
,
const
char
*
ppsz_argv
[]
)
{
int
i_ret
;
#ifdef __APPLE__
/* The so-called POSIX-compliant MacOS X is not.
* SIGPIPE fires even when it is blocked in all threads! */
...
...
@@ -159,17 +157,14 @@ int main( int i_argc, const char *ppsz_argv[] )
libvlc_add_intf
(
vlc
,
NULL
,
&
ex
);
libvlc_playlist_play
(
vlc
,
-
1
,
0
,
NULL
,
&
dummy
);
libvlc_wait
(
vlc
);
if
(
libvlc_exception_raised
(
&
ex
))
fprintf
(
stderr
,
"%s
\n
"
,
libvlc_errmsg
()
);
libvlc_release
(
vlc
);
}
i_ret
=
libvlc_exception_raised
(
&
ex
);
if
(
i_ret
)
fprintf
(
stderr
,
"%s
\n
"
,
libvlc_errmsg
()
);
libvlc_exception_clear
(
&
ex
);
libvlc_exception_clear
(
&
dummy
);
for
(
int
i
=
0
;
i
<
argc
;
i
++
)
LocaleFree
(
argv
[
i
]);
return
i_ret
;
return
vlc
==
NULL
||
libvlc_exception_raised
(
&
ex
)
;
}
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