GNOME Bugzilla – Bug 512899
[alsa] gstalsasink.c:527: warning: 'snd_pcm_sw_params_set_xfer_align' is deprecated
Last modified: 2008-02-11 20:25:57 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).
Any idea what the replacement is?
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