From 9eeda80cfeb8460b11437a5d554f88f621789a3b Mon Sep 17 00:00:00 2001 From: khorben Date: Tue, 13 Aug 2013 00:40:27 +0000 Subject: 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. --- audio/bmp/patches/patch-beep_playback.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 audio/bmp/patches/patch-beep_playback.c (limited to 'audio/bmp/patches/patch-beep_playback.c') 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) + { -- cgit v1.2.3