Bug#771138: Crashes when running without a backend
Source: phonon
Version: 4:4.8.0-3
Severity: important
Tags: patch
Today phonon's upstream Harald Sitter contacted us with the following [0]:
random suggestion du jour: since debianesque distros are the only ones
allowing running without a backend (to my knowledge anyway), this fix
should be adopted there at the earliest convenient time.
this change prevents a crash when run without a backend and getting device
changes as the Iface handling later on would directly call the cast output
without checking its validity. since the cast would always be null when
there is no backend we can just as well save time and return early.
note: this is ultimately fallout from too excessive init() setup
when there is no backend, so the ideal fix would have been to abort the
setup there. given the limited testing exposure of alsa+phononserver+phonon
this less invasive fix is deemed more suitable for the existing code base
though.
(this lineup only happens with phononserver in the picture and that
bugger has already been killed off for plasma5)
[0] <http://lists.alioth.debian.org/pipermail/pkg-kde-talk/2014-November/001995.html>
The patch is available in the cited message.
-- System Information:
Debian Release: jessie/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- debconf information excluded
Reply to: