Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for SLE-Module-Live-Patching:ppc64le
openSUSE:Leap:42.1
alsa
0019-pcm-Don-t-assert-in-_snd_pcm_hw_params_int...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0019-pcm-Don-t-assert-in-_snd_pcm_hw_params_internal.patch of Package alsa
From a5e5e3cd3c85eafcced7a93b1cf37201560f2a28 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@suse.de> Date: Mon, 1 Jun 2015 13:45:01 +0200 Subject: [PATCH] pcm: Don't assert in _snd_pcm_hw_params_internal() It's no fatal error from sw params, and it's really bad habit to use assert() and abort the operation as a system library. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- src/pcm/pcm_params.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcm/pcm_params.c b/src/pcm/pcm_params.c index 1d667a583151..60d99ad96167 100644 --- a/src/pcm/pcm_params.c +++ b/src/pcm/pcm_params.c @@ -2361,7 +2361,8 @@ int _snd_pcm_hw_params_internal(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) memset(&sw, 0, sizeof(sw)); snd_pcm_sw_params_default(pcm, &sw); err = snd_pcm_sw_params(pcm, &sw); - assert(err >= 0); + if (err < 0) + return err; if (pcm->mmap_rw || pcm->access == SND_PCM_ACCESS_MMAP_INTERLEAVED || -- 2.4.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor