From 45c3eae10c77bfc15ae7b2ae154c2f5e8cc07c8d Mon Sep 17 00:00:00 2001 From: dridri Date: Mon, 20 Oct 2014 16:41:44 +0200 Subject: [PATCH] removed useless/causing crashes with youtube streams libvlc flags --- src/libtomahawk/audio/AudioOutput.cpp | 12 +++++++++--- src/libtomahawk/audio/AudioOutput.h | 1 + src/libtomahawk/audio/VlcDsp.h | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/audio/AudioOutput.cpp b/src/libtomahawk/audio/AudioOutput.cpp index ead7c3c30..10dfe45fc 100644 --- a/src/libtomahawk/audio/AudioOutput.cpp +++ b/src/libtomahawk/audio/AudioOutput.cpp @@ -2,6 +2,7 @@ * * Copyright 2010-2014, Christian Muehlhaeuser * Copyright 2010-2012, Jeff Mitchell + * Copyright 2013, Teo Mrnjavac * Copyright 2014, Adrien Aubry * * Tomahawk is free software: you can redistribute it and/or modify @@ -24,6 +25,7 @@ #include "utils/Logger.h" +#include #include #include #include @@ -74,17 +76,21 @@ AudioOutput::AudioOutput( QObject* parent ) QList args; args << "--ignore-config"; - args << "--verbose=42"; - args << "--no-plugins-cache"; args << "--extraintf=logger"; + if ( qApp->arguments().contains( "--verbose" ) ) { + args << "--verbose=3"; + } +/* + args << "--no-plugins-cache"; args << "--no-media-library"; args << "--no-osd"; args << "--no-stats"; args << "--no-video-title-show"; args << "--no-snapshot-preview"; - args << "--no-xlib"; args << "--services-discovery=''"; +*/ args << "--no-video"; + args << "--no-xlib"; #ifdef VLC_DSP_PLUGIN_ENABLED args << "--audio-filter=dsp"; args << QString("--dsp-callback=%1").arg((quint64)&AudioOutput::s_dspCallback, 0, 16).toAscii(); diff --git a/src/libtomahawk/audio/AudioOutput.h b/src/libtomahawk/audio/AudioOutput.h index 883f1e8aa..768da5a0d 100644 --- a/src/libtomahawk/audio/AudioOutput.h +++ b/src/libtomahawk/audio/AudioOutput.h @@ -2,6 +2,7 @@ * * Copyright 2010-2014, Christian Muehlhaeuser * Copyright 2010-2012, Jeff Mitchell + * Copyright 2013, Teo Mrnjavac * Copyright 2014, Adrien Aubry * * Tomahawk is free software: you can redistribute it and/or modify diff --git a/src/libtomahawk/audio/VlcDsp.h b/src/libtomahawk/audio/VlcDsp.h index 2b2d6da0c..a57c85394 100644 --- a/src/libtomahawk/audio/VlcDsp.h +++ b/src/libtomahawk/audio/VlcDsp.h @@ -44,4 +44,4 @@ void VlcDspSetup( libvlc_media_player_t* vlcPlayer ); #endif // VLC_DSP_PLUGIN_ENABLED -#endif // VLCDSP_H \ No newline at end of file +#endif // VLCDSP_H