[Gstreamer-bugs] [Bug 127984] New - Compilation error in ext/alsa/gstalsa.c because too many args passed to snd_pcm_hw_params* functions
bugzilla-daemon at widget.gnome.org
bugzilla-daemon at widget.gnome.org
Wed Nov 26 07:35:04 PST 2003
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=127984
Changed by damien.carbery at sun.com.
--- shadow/127984 Wed Nov 26 10:35:04 2003
+++ shadow/127984.tmp.15330 Wed Nov 26 10:35:04 2003
@@ -0,0 +1,54 @@
+Bug#: 127984
+Product: GStreamer
+Version: HEAD CVS
+OS: Linux
+OS Details: SuSE 8.1
+Status: NEW
+Resolution:
+Severity: critical
+Priority: Normal
+Component: gst-plugins
+AssignedTo: gstreamer-maint at bugzilla.gnome.org
+ReportedBy: damien.carbery at sun.com
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: HEAD
+URL:
+Summary: Compilation error in ext/alsa/gstalsa.c because too many args passed to snd_pcm_hw_params* functions
+
+Some of the calls to snd_pcm_hw_params* functions specify the wrong number
+of parameters.
+For snd_pcm_hw_params_get_channels_min, the min_rate data is returned
+rather that setting a passed variable pointer.
+I have alsa-devel-0.9.0.cvs20020903-178 on the system.
+
+Patch attached.
+
+Makefile and compiler output:
+gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/gnome-2.4/include
+-I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
+-I/opt/gnome-2.4/include/gstreamer-0.7 -I/opt/gnome-2.4/include/glib-2.0
+-I/opt/gnome-2.4/lib/glib-2.0/include -I/opt/gnome-2.4/include/libxml2
+-DGST_DISABLE_DEPRECATED -Wall -Werror -DG_DISABLE_DEPRECATED -g
+-I/opt/gnome-2.4/include -MT libgstalsa_la-gstalsa.lo -MD -MP -MF
+.deps/libgstalsa_la-gstalsa.Tpo -c gstalsa.c -fPIC -DPIC -o
+libgstalsa_la-gstalsa.lo
+gstalsa.c: In function `gst_alsa_get_caps':
+gstalsa.c:559: too many arguments to function
+`snd_pcm_hw_params_get_channels_min'
+gstalsa.c:561: too many arguments to function
+`snd_pcm_hw_params_get_channels_max'
+gstalsa.c:567: too many arguments to function `snd_pcm_hw_params_get_rate_min'
+gstalsa.c:570: too many arguments to function `snd_pcm_hw_params_get_rate_max'
+cc1: warnings being treated as errors
+gstalsa.c: In function `gst_alsa_probe_hw_params':
+gstalsa.c:1052: warning: passing arg 3 of
+`snd_pcm_hw_params_set_periods_near' makes integer from pointer without a cast
+gstalsa.c:1054: warning: passing arg 3 of
+`snd_pcm_hw_params_set_period_size_near' makes integer from pointer without
+a cast
+gstalsa.c: In function `gst_alsa_set_hw_params':
+gstalsa.c:1108: warning: passing arg 3 of
+`snd_pcm_hw_params_set_periods_near' makes integer from pointer without a cast
+gstalsa.c:1110: warning: passing arg 3 of
+`snd_pcm_hw_params_set_period_size_near' makes integer from pointer without
+a cast
More information about the Gstreamer-bugs
mailing list