After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 512899 - [alsa] gstalsasink.c:527: warning: 'snd_pcm_sw_params_set_xfer_align' is deprecated
[alsa] gstalsasink.c:527: warning: 'snd_pcm_sw_params_set_xfer_align' is depr...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal blocker
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-29 20:32 UTC by Olav Vitters
Modified: 2008-02-11 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olav Vitters 2008-01-29 20:32:54 UTC
Build breakage:

cc1: warnings being treated as errors
gstalsasink.c: In function 'set_swparams':
gstalsasink.c:527: warning: 'snd_pcm_sw_params_set_xfer_align' is deprecated (declared at /usr/include/alsa/pcm.h:1104)

$ rpm -qf /usr/include/alsa/pcm.h
lib64alsa2-devel-1.0.16-0.rc1.1mdv2008.1

$ gcc --version
gcc (GCC) 4.2.2 20071128 (prerelease) (4.2.2-2mdv2008.1)

This is CVS HEAD (or whatever comes with GNOME 2.22 jhbuild).
Comment 1 Jan Schmidt 2008-02-08 04:26:46 UTC
Any idea what the replacement is?
Comment 2 Tim-Philipp Müller 2008-02-11 20:25:57 UTC
Hopefully fixed in -base CVS (if not, please re-open):

 2008-02-11  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/alsa/gstalsa.h: (GST_CHECK_ALSA_VERSION):
        * ext/alsa/gstalsasink.c: (set_swparams):
        * ext/alsa/gstalsasrc.c: (set_swparams), (gst_alsasrc_open):
          Don't use snd_pcm_sw_params_set_xfer_align() if we're compiling
          against libasound >= 1.0.16, since it's been deprecated in
          0.10.16, and alignment is always 1 then, apparently. (#512899)

 

> Any idea what the replacement is?

Looks like there is none:

http://hg-mirror.alsa-project.org/alsa-lib/rev/a94dccc55307
http://www.alsa-project.org/main/index.php/Changes_v1.0.15_v1.0.16