Commit bc3e5294 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.
(cherry picked from commit 62f348b047c0c691c4a47970072522a66633f486)
parent e4974acd
...@@ -99,11 +99,11 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -99,11 +99,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());
/* Synchronously intercepted POSIX signals. /* Synchronously intercepted POSIX signals.
* *
......
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