[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdemultimedia/phonon-xine
From: Stefan Gehn <mETz81 () web ! de>
Date: 2007-02-01 2:25:51
Message-ID: 1170296751.353378.3243.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 628958 by metz:
Fix crash when setting volume before xine stream has been initialized. This can \
happen when AbstractMediaProducer has not initialized its xine stream yet \
(delayedInit() not yet called)
M +2 -1 audiooutput.cpp
--- trunk/KDE/kdemultimedia/phonon-xine/audiooutput.cpp #628957:628958
@@ -82,7 +82,8 @@
}
foreach( xine_stream_t* stream, streams )
{
- xine_set_param( stream, XINE_PARAM_AUDIO_AMP_LEVEL, xinevolume );
+ if( stream ) // avoid xine crash when passing a null-pointer
+ xine_set_param( stream, XINE_PARAM_AUDIO_AMP_LEVEL, xinevolume );
}
emit volumeChanged( m_volume );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic