aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-03-22 14:18:14 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-03-22 14:18:14 +0000
commit208cc9c4d0096aac024551ef61ab1b9a4bbd0a79 (patch)
treeed0a9e83a7490fd0facb17f16ef003e8ce8cc2f9
parent45453fa4fbe4f5563236ced555dc0f108f3999ab (diff)
downloadqmmp-208cc9c4d0096aac024551ef61ab1b9a4bbd0a79.tar.gz
qmmp-208cc9c4d0096aac024551ef61ab1b9a4bbd0a79.tar.bz2
qmmp-208cc9c4d0096aac024551ef61ab1b9a4bbd0a79.zip
svn commit -m "fixed segmentation fault when running without output
plugins" git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3344 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmp/volumecontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmmp/volumecontrol.cpp b/src/qmmp/volumecontrol.cpp
index fdf2a4663..197c14828 100644
--- a/src/qmmp/volumecontrol.cpp
+++ b/src/qmmp/volumecontrol.cpp
@@ -91,7 +91,7 @@ void VolumeControl::reload()
delete m_volume;
m_volume = 0;
}
- if(!QmmpSettings::instance()->useSoftVolume())
+ if(!QmmpSettings::instance()->useSoftVolume() && Output::currentFactory())
{
if((m_volume = Output::currentFactory()->createVolume()))
m_timer->start(150);