summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 11:12:27 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 11:12:27 +0100
commit9c0d1799fb31a883591f3afb61be8300dd85081f (patch)
tree08cc5d596b7b1aa27f30644b115da3865d32faa3
parent5d4ae976c65b7baef5657def60d2afefcbf45af4 (diff)
downloadfdk-aac-9c0d1799fb31a883591f3afb61be8300dd85081f.tar.gz
fdk-aac-9c0d1799fb31a883591f3afb61be8300dd85081f.tar.bz2
fdk-aac-9c0d1799fb31a883591f3afb61be8300dd85081f.zip
Only show VLC options if verbose
-rw-r--r--src/VLCInput.cpp10
1 files 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);