Hello community,

here is the log from the commit of package alsa-utils for openSUSE:Factory 
checked in at 2013-09-11 11:00:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/alsa-utils (Old)
 and      /work/SRC/openSUSE:Factory/.alsa-utils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "alsa-utils"

Changes:
--------
--- /work/SRC/openSUSE:Factory/alsa-utils/alsa-utils.changes    2013-09-09 
09:26:37.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.alsa-utils.new/alsa-utils.changes       
2013-09-11 11:00:46.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Sep  9 14:16:52 CEST 2013 - [email protected]
+
+- Upstream fix:
+  0003-aplay-fix-two-off-by-one-errors.patch
+
+-------------------------------------------------------------------

New:
----
  0003-aplay-fix-two-off-by-one-errors.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ alsa-utils.spec ++++++
--- /var/tmp/diff_new_pack.Gy2VaO/_old  2013-09-11 11:00:47.000000000 +0200
+++ /var/tmp/diff_new_pack.Gy2VaO/_new  2013-09-11 11:00:47.000000000 +0200
@@ -60,6 +60,7 @@
 # upstream fix patches
 Patch1:         0001-alsactl-alsa-state.service-fix-typo-rkill-kill.patch
 Patch2:         0002-alsaloop-fix-wrong-alias-for-signal.h.patch
+Patch3:         0003-aplay-fix-two-off-by-one-errors.patch
 #
 Patch99:        alsa-utils-gettext-version-removal.diff
 Url:            http://www.alsa-project.org/
@@ -77,6 +78,7 @@
 # patch -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 #
 %if %suse_version < 1020
 %patch99 -p1

++++++ 0003-aplay-fix-two-off-by-one-errors.patch ++++++
>From 719faff80962a5d93c09980673f08048ae58add6 Mon Sep 17 00:00:00 2001
From: Jurgen Kramer <[email protected]>
Date: Mon, 9 Sep 2013 12:02:29 +0200
Subject: [PATCH] aplay: fix two off by one errors

Attached patch for aplay fixes two off-by-one errors preventing usage
of the last available sample format.

Signed-off-by: Takashi Iwai <[email protected]>
---
 aplay/aplay.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aplay/aplay.c b/aplay/aplay.c
index 89c6b06..e0631c4 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -242,7 +242,7 @@ _("Usage: %s [OPTION]... [FILE]...\n"
   )
                , command);
        printf(_("Recognized sample formats are:"));
-       for (k = 0; k < SND_PCM_FORMAT_LAST; ++k) {
+       for (k = 0; k <= SND_PCM_FORMAT_LAST; ++k) {
                const char *s = snd_pcm_format_name(k);
                if (s)
                        printf(" %s", s);
@@ -1114,7 +1114,7 @@ static void 
show_available_sample_formats(snd_pcm_hw_params_t* params)
        snd_pcm_format_t format;
 
        fprintf(stderr, "Available formats:\n");
-       for (format = 0; format < SND_PCM_FORMAT_LAST; format++) {
+       for (format = 0; format <= SND_PCM_FORMAT_LAST; format++) {
                if (snd_pcm_hw_params_test_format(handle, params, format) == 0)
                        fprintf(stderr, "- %s\n", snd_pcm_format_name(format));
        }
-- 
1.8.4

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to