From kde-commits Thu Feb 01 02:25:51 2007 From: Stefan Gehn Date: Thu, 01 Feb 2007 02:25:51 +0000 To: kde-commits Subject: KDE/kdemultimedia/phonon-xine Message-Id: <1170296751.353378.3243.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117029676620678 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 );