mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: mpc123: Add patch that fixes a segfault.
* gnu/packages/patches/mpc123-initialize-ao.patch: New file. * gnu/packages/mp3.scm (mpc123): Use it. * gnu-system.am (dist_patch_DATA): Add it.
This commit is contained in:
parent
504a83af42
commit
86d07a5514
3 changed files with 22 additions and 1 deletions
19
gnu/packages/patches/mpc123-initialize-ao.patch
Normal file
19
gnu/packages/patches/mpc123-initialize-ao.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
Description: Zero ao_sample_format structure to cope with libao 1.0.0
|
||||
Author: Colin Watson <cjwatson@debian.org>
|
||||
Bug-Debian: http://bugs.debian.org/591396
|
||||
Bug-Ubuntu: https://bugs.launchpad.net/bugs/710268
|
||||
Forwarded: no
|
||||
Last-Update: 2013-05-07
|
||||
|
||||
Index: b/ao.c
|
||||
===================================================================
|
||||
--- a/ao.c
|
||||
+++ b/ao.c
|
||||
@@ -123,6 +123,7 @@
|
||||
|
||||
/* initialize ao_format struct */
|
||||
/* XXX VERY WRONG */
|
||||
+ memset(&ao_fmt, 0, sizeof(ao_fmt));
|
||||
ao_fmt.bits=16; /*tmp_stream_info.average_bitrate;*/
|
||||
ao_fmt.rate=streaminfo->sample_freq;
|
||||
ao_fmt.channels=streaminfo->channels;
|
Loading…
Add table
Add a link
Reference in a new issue