Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 197161 Details for
Bug 277018
app-misc/workrave-1.9.0 crashes when sound is disabled
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
new nosoundplayer patch
workrave-1.9.0-nosoundplayer.patch (text/plain), 2.11 KB, created by
Maik Nijhuis
on 2009-07-08 10:52:35 UTC
(
hide
)
Description:
new nosoundplayer patch
Filename:
MIME Type:
Creator:
Maik Nijhuis
Created:
2009-07-08 10:52:35 UTC
Size:
2.11 KB
patch
obsolete
>--- frontend/common/src/SoundPlayer.cc 2008-07-12 21:20:28.000000000 +0200 >+++ frontend/common/src/SoundPlayer.cc.new 2009-07-08 12:22:29.000000000 +0200 >@@ -26,37 +26,40 @@ > #include "debug.hh" > #include "nls.h" > >+#ifdef HAVE_REALPATH >+#include <limits.h> >+#include <stdlib.h> >+#endif >+ > #include <list> > >-#include "SoundPlayer.hh" > #include "Thread.hh" >+ > #include "Sound.hh" >+#include "SoundPlayer.hh" >+#include "ISoundDriver.hh" > > #include "IConfigurator.hh" > #include "CoreFactory.hh" > #include "Util.hh" > >-#ifdef HAVE_GNOME >+#if defined HAVE_GNOME > #include <gdk/gdk.h> > #include "GnomeSoundPlayer.hh" >-#endif >-#ifdef HAVE_KDE >+#elif defined HAVE_KDE > #include "KdeSoundPlayer.hh" >-#endif >-#ifdef PLATFORM_OS_UNIX >+#elif defined PLATFORM_OS_UNIX > #include <X11/Xlib.h> >-#endif >-#ifdef PLATFORM_OS_WIN32 >+#elif defined PLATFORM_OS_WIN32 > #include <windows.h> > #include "W32SoundPlayer.hh" >-#endif >-#ifdef PLATFORM_OS_OSX >+#elif defined PLATFORM_OS_OSX > #include "OSXSoundPlayer.hh" >-#endif >-#ifdef HAVE_GSTREAMER >+#elif defined HAVE_GSTREAMER > #include "GstSoundPlayer.hh" > #endif > >+ > const char *SoundPlayer::CFG_KEY_SOUND_ENABLED = "sound/enabled"; > const char *SoundPlayer::CFG_KEY_SOUND_DEVICE = "sound/device"; > const char *SoundPlayer::CFG_KEY_SOUND_VOLUME = "sound/volume"; >@@ -296,16 +299,16 @@ > SoundPlayer::SoundPlayer() > { > driver = >-#if defined(PLATFORM_OS_WIN32) >- new W32SoundPlayer() >-#elif defined(HAVE_KDE) >- new KdeSoundPlayer() >-#elif defined(HAVE_GSTREAMER) >- new GstSoundPlayer() >-#elif defined(HAVE_GNOME) >+#if defined HAVE_GNOME > new GnomeSoundPlayer() >-#elif defined(PLATFORM_OS_OSX) >+#elif defined HAVE_KDE >+ new KdeSoundPlayer() >+#elif defined PLATFORM_OS_WIN32 >+ new W32SoundPlayer() >+#elif defined PLATFORM_OS_OSX > new OSXSoundPlayer() >+#elif defined HAVE_GSTREAMER >+ new GstSoundPlayer() > #else > # warning Sound card support disabled. > NULL >@@ -387,6 +390,8 @@ > void > SoundPlayer::sync_settings() > { >+ if (driver == NULL) return; >+ > for (unsigned int i = 0; i < sizeof(sound_registry)/sizeof(sound_registry[0]); i++) > { > SoundRegistry *snd = &sound_registry[i];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277018
: 197161