From 7aa4e6782cd2e28c3d57d30959e408bdc5e75ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Merz?= Date: Sat, 21 Aug 2010 16:20:22 +0000 Subject: Pulseaudio volume control feedback (stream end) During channel changes, the audio stream ends and a new stream begins. This in turn can lead to 'pa_stream_get_index' ending up in an assertion. Because of that, a check if there is a stream is a good idea. --- src/audio_out/audio_pulse_out.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/audio_out/audio_pulse_out.c b/src/audio_out/audio_pulse_out.c index ccb780d0d..ae74a57bc 100644 --- a/src/audio_out/audio_pulse_out.c +++ b/src/audio_out/audio_pulse_out.c @@ -267,6 +267,9 @@ static void __xine_pa_context_subscribe_callback(pa_context *c, pulse_driver_t * this = (pulse_driver_t*) this_gen; int index; + if (this->stream == NULL) + return; + index = pa_stream_get_index(this->stream); if (index != idx) -- cgit v1.2.3