[alsa-devel] [PATCH 1/4] pulse: get rid of a number of assert()s
Lennart Poettering
mznyfn at 0pointer.de
Fri Jul 31 17:10:18 CEST 2009
On Fri, 31.07.09 15:48, Colin Guthrie (gmane at colin.guthr.ie) wrote:
> Couldn't find these commits in your alsa-plugins clone at
> git://git.0pointer.de/alsa-plugins.git so couldn't create a followup
> patch so here it is inline (against 1.2.20 so line numbers may be off):
>
> --- alsa-plugins-1.0.20/pulse/ctl_pulse.c~ 2009-07-31 15:39:22.000000000
> +0100
> +++ alsa-plugins-1.0.20/pulse/ctl_pulse.c 2009-07-31 15:47:32.000000000
> +0100
> @@ -542,6 +542,8 @@
> snd_ctl_pulse_t *ctl = ext->private_data;
> int err = 0;
>
> + assert(ctl);
> +
> if (!ctl->p || !ctl->p->mainloop || !ctl->p->context)
> return -EBADFD;
>
See attachment for a version that incorporates this mini fix.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
-------------- next part --------------
More information about the Alsa-devel
mailing list