From 68851843f5138269548ffe243d9e0b27e4cf95bf Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Mon, 22 Feb 2016 03:03:47 +0100 Subject: [PATCH] Unmute AudioOutput on start up --- src/libtomahawk/audio/AudioOutput.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/audio/AudioOutput.cpp b/src/libtomahawk/audio/AudioOutput.cpp index cb76ab421..197f6d6ed 100644 --- a/src/libtomahawk/audio/AudioOutput.cpp +++ b/src/libtomahawk/audio/AudioOutput.cpp @@ -134,8 +134,6 @@ AudioOutput::AudioOutput( QObject* parent ) libvlc_event_attach( manager, events[ i ], &AudioOutput::vlcEventCallback, this ); } - m_muted = isMuted(); - // HACK: play silent ogg file and set volume on that to workaround vlc not allowing to set volume before a file is played m_silenceFile.setFileName( RESPATH "sounds/silence.ogg" ); Q_ASSERT( m_silenceFile.exists() ); @@ -186,6 +184,7 @@ AudioOutput::onInitVlcEvent( const libvlc_event_t* event ) { case libvlc_MediaPlayerTimeChanged: setVolume( volume() ); + setMuted( isMuted() ); m_initialized = true; m_silenceFile.close(); @@ -509,7 +508,7 @@ AudioOutput::isSeekable() const bool AudioOutput::isMuted() const { - return libvlc_audio_get_mute( m_vlcPlayer ); + return m_muted; }