diff --git a/src/xpra/client/ui_client_base.py b/src/xpra/client/ui_client_base.py index fab9b505ea..9045cbd7c6 100644 --- a/src/xpra/client/ui_client_base.py +++ b/src/xpra/client/ui_client_base.py @@ -1730,14 +1730,13 @@ def _process_sound_data(self, packet): soundlog("speaker is now disabled - dropping packet") return ss = self.sound_sink - if metadata.boolget("end-of-stream"): - if ss: - soundlog("server sent end-of-stream for sequence %s, closing sound pipeline", seq) - self.stop_receiving_sound(False) - return if ss is None: soundlog("no sound sink to process sound data, dropping it") return + if metadata.boolget("end-of-stream"): + soundlog("server sent end-of-stream for sequence %s, closing sound pipeline", seq) + self.stop_receiving_sound(False) + return if codec!=ss.codec: log.error("sound codec change not supported! (from %s to %s)", ss.codec, codec) ss.stop()