You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/workrave/files/workrave-1.9.1-nogst-crash....

28 lines
581 B

--- frontend/common/src/SoundPlayer.cc.orig 2010-06-16 10:49:11.000000000 +0200
+++ frontend/common/src/SoundPlayer.cc 2010-06-16 10:54:04.000000000 +0200
@@ -334,8 +334,11 @@
void
SoundPlayer::init()
{
- driver->init();
- register_sound_events();
+ if (driver != NULL)
+ {
+ driver->init();
+ register_sound_events();
+ }
}
void
@@ -405,6 +408,10 @@
void
SoundPlayer::sync_settings()
{
+ if (driver == NULL)
+ {
+ return;
+ }
if (driver != NULL)
{
for (unsigned int i = 0; i < sizeof(sound_registry)/sizeof(sound_registry[0]); i++)