From bd857c1d6406ac45c78d9ce2d20d2a265a382271 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 17 Sep 2007 15:29:39 +0200 Subject: fix pcm->stream initialization --- ChangeLog | 2 ++ src/pcm.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index fb6b407..b7de159 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ Version 0.0.12: * Fix a typo in snd_pcm_drain(). It called DROP instead of DRAIN. + * Fix for capture -- fix the initialization of pcm->stream + field in snd_pcm_open() Version 0.0.11: * Fix a typo in fnctl() argument in snd_pcm_open (for blocking diff --git a/src/pcm.c b/src/pcm.c index 88d9f1e..951a1b6 100644 --- a/src/pcm.c +++ b/src/pcm.c @@ -129,6 +129,7 @@ int snd_pcm_open(snd_pcm_t **pcmp, const char *name, pcm->card = card; pcm->device = dev; + pcm->stream = stream; pcm->subdevice = subdev; pcm->protocol = ver; pcm->fd = fd; -- cgit 1.2.3-korg