summaryrefslogtreecommitdiff
path: root/audio/bmp/patches/patch-beep_playback.c
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2013-08-13 00:40:27 +0000
committerkhorben <khorben@pkgsrc.org>2013-08-13 00:40:27 +0000
commit9eeda80cfeb8460b11437a5d554f88f621789a3b (patch)
tree2b6657c7407645131bf5d33db9bf320d372b443b /audio/bmp/patches/patch-beep_playback.c
parent33936c565715691542b2ef16a4db1e9bb3831d29 (diff)
downloadpkgsrc-9eeda80cfeb8460b11437a5d554f88f621789a3b.tar.gz
Patched bmp as recommended in xmms-crossfade.
This fixes issues occuring with this plug-in enabled, while stopping playback or crossfading between tracks for instance. Bump revision, as the resulting binaries are changed with this patch.
Diffstat (limited to 'audio/bmp/patches/patch-beep_playback.c')
-rw-r--r--audio/bmp/patches/patch-beep_playback.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/bmp/patches/patch-beep_playback.c b/audio/bmp/patches/patch-beep_playback.c
new file mode 100644
index 00000000000..295c46bd5a7
--- /dev/null
+++ b/audio/bmp/patches/patch-beep_playback.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-beep_playback.c,v 1.1 2013/08/13 00:40:27 khorben Exp $
+
+Required for audio/bmp-crossfade
+
+--- beep/playback.c.orig 2005-01-26 05:56:15.000000000 +0000
++++ beep/playback.c
+@@ -89,7 +89,7 @@ bmp_playback_initiate(void)
+ return;
+
+ if (bmp_playback_get_playing())
+- bmp_playback_stop();
++ bmp_playback_stop_for_restart();
+
+ vis_clear_data(mainwin_vis);
+ vis_clear_data(playlistwin_vis);
+@@ -135,6 +135,15 @@ bmp_playback_pause(void)
+ get_current_input_plugin()->pause(ip_data.paused);
+ }
+
++gboolean input_stopped_for_restart = FALSE;
++void
++bmp_playback_stop_for_restart(void)
++{
++ input_stopped_for_restart = TRUE;
++ bmp_playback_stop();
++ input_stopped_for_restart = FALSE;
++}
++
+ void
+ bmp_playback_stop(void)
+ {