From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001981]: Compilation problem in pcm/pcm.c Date: Fri, 31 Mar 2006 13:49:53 +0200 Message-ID: <30c141c0db9e43aaae8e1e4079c12888@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 8495CC1 for ; Fri, 31 Mar 2006 13:49:53 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been SUBMITTED. ====================================================================== ====================================================================== Reported By: croiset Assigned To: ====================================================================== Project: ALSA - lib Issue ID: 1981 Category: 0_general Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 03-31-2006 13:49 CEST Last Modified: 03-31-2006 13:49 CEST ====================================================================== Summary: Compilation problem in pcm/pcm.c Description: In the function snd_pcm_get_params, you must declare everything before making any code. If it's not the case, it will create a compilation error on C. Before in line 7266 : int snd_pcm_get_params(snd_pcm_t *pcm, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size) { assert(pcm); snd_pcm_hw_params_t *hw; int err; snd_pcm_hw_params_alloca(&hw); After correction : int snd_pcm_get_params(snd_pcm_t *pcm, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size) { snd_pcm_hw_params_t *hw; int err; assert(pcm); snd_pcm_hw_params_alloca(&hw); ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 03-31-06 13:49 croiset New Issue ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642