[pulseaudio-tickets] [Bug 40236] New: [1.0-rc2] paplay 8k16bitpcm.wav crashes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 19 07:32:00 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=40236

           Summary: [1.0-rc2] paplay 8k16bitpcm.wav crashes
           Product: PulseAudio
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tools
        AssignedTo: pulseaudio-bugs at lists.freedesktop.org
        ReportedBy: jan at willies.info
         QAContact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net


Index: pulseaudio-0.99.2/src/pulsecore/sndfile-util.c
===================================================================
--- pulseaudio-0.99.2.orig/src/pulsecore/sndfile-util.c 2011-08-08
14:45:43.000000000 +0200
+++ pulseaudio-0.99.2/src/pulsecore/sndfile-util.c      2011-08-19
15:31:22.000000000 +0200
@@ -39,7 +39,11 @@
     pa_assert(ss);

     pa_zero(sfi);
-    pa_assert_se(sf_command(sf, SFC_GET_CURRENT_SF_INFO, &sfi, sizeof(sfi)) ==
0);
+
+    int sf_errno;
+    sf_errno = sf_command(sf, SFC_GET_CURRENT_SF_INFO, &sfi, sizeof(sfi));
+    pa_log("sndfile error: %s", sf_error_number(sf_errno));
+    pa_assert(sf_errno == 0);

     switch (sfi.format & SF_FORMAT_SUBMASK) {


After applying this patch I get:

root at OpenWrt:/# paplay /etc/8k16bitpcm.wav
sndfile error: Bad parameter passed to function sf_command.
Assertion 'sf_errno == 0' failed at pulsecore/sndfile-util.c:46, function
pa_sndfile_read_sample_spec(). Aborting.
Aborted

I am using libsndfile-1.0.25

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the pulseaudio-bugs mailing list