[packages/bb] - added patch which prevents stopping animation with pulseaudio - rel 10

witekfl witekfl at pld-linux.org
Fri Jun 30 22:11:07 CEST 2017


commit cd73eeb8fe919914a16e1e52f175fb74d4d877b7
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Fri Jun 30 22:09:42 2017 +0200

    - added patch which prevents stopping animation with pulseaudio
    - rel 10

 bb.spec     |  4 +++-
 pulse.patch | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/bb.spec b/bb.spec
index 4737c47..d055ecf 100644
--- a/bb.spec
+++ b/bb.spec
@@ -2,7 +2,7 @@ Summary:	BB - the portable demo
 Summary(pl.UTF-8):	BB - przenośne demo
 Name:		bb
 Version:	1.3rc1
-Release:	9
+Release:	10
 License:	GPL
 Group:		Applications/Terminal
 Source0:	http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@ Source0:	http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
 Patch0:		%{name}-typos.patch
 Patch1:		%{name}-regparm.patch
 Patch2:		segv64.patch
+Patch3:		pulse.patch
 URL:		http://aa-project.sourceforge.net/bb/
 BuildRequires:	aalib-devel >= 1.4
 BuildRequires:	autoconf
@@ -32,6 +33,7 @@ operacyjnych.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 rm -f missing
diff --git a/pulse.patch b/pulse.patch
new file mode 100644
index 0000000..ae033ce
--- /dev/null
+++ b/pulse.patch
@@ -0,0 +1,22 @@
+--- bb-1.3.0/timers.c.pulse	2017-06-30 21:37:27.711687696 +0200
++++ bb-1.3.0/timers.c	2017-06-30 21:46:36.218568976 +0200
+@@ -483,14 +483,17 @@ tl_process_group (tl_group * group, int
+ 	      int time = timer->interval - tl_lookup_timer (timer);
+ 	      if (time <= 0)
+ 		{
++		  int n;
+ 		  if (activated != NULL)
+ 		    (*activated)++;
+ 		  again = 1;
+ 		  tl_reset_timer (timer);
+ 		  if (time < -200 * 1000000)
+ 		    time = 0;	/*underflow? */
+-		  tl_slowdown_timer (timer, time);
+-		  time = timer->interval + time;
++		  n = -(time) / timer->interval + 1;
++		  time += timer->interval * n;
++
++		  tl_slowdown_timer (timer, time - timer->interval);
+ 		  timer->handler (timer->userdata);
+ 		  tl_update_time ();
+ 		}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bb.git/commitdiff/cd73eeb8fe919914a16e1e52f175fb74d4d877b7



More information about the pld-cvs-commit mailing list