Commit 62f348b0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not print start banner if stderr is not a TTY.

The user is not going to see the banner, and this tends to clutter
error logs (X server, cron jobs...) - not only on MacOS.
parent 61d342e1
...@@ -121,11 +121,11 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -121,11 +121,11 @@ int main( int i_argc, const char *ppsz_argv[] )
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
#ifndef __APPLE__ if (isatty (STDERR_FILENO))
/* This clutters OSX GUI error logs */ /* This message clutters error logs. It is print it only on a TTY.
fprintf( stderr, "VLC media player %s (revision %s)\n", * Forunately, LibVLC prints version infos with -vv anyhow. */
libvlc_get_version(), libvlc_get_changeset() ); fprintf (stderr, "VLC media player %s (revision %s)\n",
#endif libvlc_get_version(), libvlc_get_changeset());
sigset_t set; sigset_t set;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment