From 9c0d1799fb31a883591f3afb61be8300dd85081f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 30 Dec 2015 11:12:27 +0100 Subject: Only show VLC options if verbose --- src/VLCInput.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index d6c996a..492d4e6 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -177,13 +177,13 @@ int VLCInput::prepare() vlc_args[arg_ix++] = "--sout"; vlc_args[arg_ix++] = smem_options; // Stream to memory - fprintf(stderr, "VLC opt:\n"); - for (size_t i = 0; i < arg_ix; i++) { - fprintf(stderr, " %s\n", vlc_args[i]); + if (m_verbosity) { + fprintf(stderr, "Initialising VLC with options:\n"); + for (size_t i = 0; i < arg_ix; i++) { + fprintf(stderr, " %s\n", vlc_args[i]); + } } - fprintf(stderr, "End of VLC opt\n"); - // Launch VLC m_vlc = libvlc_new(arg_ix, vlc_args); -- cgit v1.2.3