diff options
Diffstat (limited to 'app-misc/workrave/files/workrave-1.9.1-nogst-crash.patch')
-rw-r--r-- | app-misc/workrave/files/workrave-1.9.1-nogst-crash.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-misc/workrave/files/workrave-1.9.1-nogst-crash.patch b/app-misc/workrave/files/workrave-1.9.1-nogst-crash.patch new file mode 100644 index 000000000000..95fc690dc1a0 --- /dev/null +++ b/app-misc/workrave/files/workrave-1.9.1-nogst-crash.patch @@ -0,0 +1,27 @@ +--- 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++) |