[Pkg-sdl-commits] [libsdl2-mixer] 01/02: Add patch fix-750706-upstream-8ef083375857.patch (Closes: #750706)

Manuel A. Fernandez Montecelo mafm at moszumanska.debian.org
Sat Oct 25 10:50:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

mafm pushed a commit to branch master
in repository libsdl2-mixer.

commit 669afa896e40a7471383c44934632aed4ba934d1
Author: Manuel A. Fernandez Montecelo <mafm at debian.org>
Date:   Sat Oct 25 10:59:20 2014 +0100

    Add patch fix-750706-upstream-8ef083375857.patch (Closes: #750706)
    
      * Add patch fix-750706-upstream-8ef083375857.patch backported from
        upstream to fix playing speed with timidity backend.  Thanks Sylvain
        Beucler (Closes: #750706)
---
 debian/changelog                                   |  8 +++++
 .../patches/fix-750706-upstream-8ef083375857.patch | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 44 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 99cace8..f6903c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libsdl2-mixer (2.0.0+dfsg1-5) UNRELEASED; urgency=medium
+
+  * Add patch fix-750706-upstream-8ef083375857.patch backported from
+    upstream to fix playing speed with timidity backend.  Thanks Sylvain
+    Beucler (Closes: #750706)
+
+ -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Sat, 25 Oct 2014 10:56:37 +0100
+
 libsdl2-mixer (2.0.0+dfsg1-4) unstable; urgency=medium
 
   * Bump Policy Standards-Version to 3.9.6 (no changes needed)
diff --git a/debian/patches/fix-750706-upstream-8ef083375857.patch b/debian/patches/fix-750706-upstream-8ef083375857.patch
new file mode 100644
index 0000000..6781c49
--- /dev/null
+++ b/debian/patches/fix-750706-upstream-8ef083375857.patch
@@ -0,0 +1,35 @@
+
+# HG changeset patch
+# User Sam Lantinga <slouken at libsdl.org>
+# Date 1383514401 28800
+# Node ID 8ef0833758572b84317ba19cc5a1eb2719552da3
+# Parent  c166c70fc52a33324945156318ad7454a366eb30
+Fixed bug 2140 - Track is played back with the wrong tempo
+
+ny00
+
+It seems like the test against MAXCHAN can safely be relocated after the check if (meep->event.type==ME_TEMPO), with no risk of memory corruption, at least in this function.
+
+diff -r c166c70fc52a -r 8ef083375857 timidity/readmidi.c
+--- a/timidity/readmidi.c	Sun Nov 03 11:31:19 2013 -0800
++++ b/timidity/readmidi.c	Sun Nov 03 13:33:21 2013 -0800
+@@ -673,15 +673,15 @@
+ 		meep->event.time, meep->event.channel + 1,
+ 		meep->event.type, meep->event.a, meep->event.b);
+ 
+-      if (meep->event.channel >= MAXCHAN)
+-	skip_this_event=1;
+-      else if (meep->event.type==ME_TEMPO)
++      if (meep->event.type==ME_TEMPO)
+ 	{
+ 	  tempo=
+ 	    meep->event.channel + meep->event.b * 256 + meep->event.a * 65536;
+ 	  compute_sample_increment(tempo, divisions);
+ 	  skip_this_event=1;
+ 	}
++      else if (meep->event.channel >= MAXCHAN)
++	skip_this_event=1;
+       else if ((quietchannels & (1<<meep->event.channel)))
+ 	skip_this_event=1;
+       else switch (meep->event.type)
+
diff --git a/debian/patches/series b/debian/patches/series
index 05533f2..615dcef 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 bug-715461-soundfont_paths.patch
+fix-750706-upstream-8ef083375857.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sdl/packages/libsdl2-mixer.git



More information about the pkg-sdl-commits mailing list