summaryrefslogtreecommitdiff
path: root/audio/bmp/patches/patch-beep_playback.c
blob: 295c46bd5a7e3273773afb31d7eb97e48734d2e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)
 {