aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-09-17 15:29:39 +0200
committerTakashi Iwai <tiwai@suse.de>2007-09-17 15:29:39 +0200
commitbd857c1d6406ac45c78d9ce2d20d2a265a382271 (patch)
tree55e7c5377331416dd444f3f7d9426c4d7535003e
parente80add91fd4509bc991f7a526e60cff6612173ae (diff)
downloadsalsa-lib-bd857c1d6406ac45c78d9ce2d20d2a265a382271.tar.gz
fix pcm->stream initialization
-rw-r--r--ChangeLog2
-rw-r--r--src/pcm.c1
2 files changed, 3 insertions, 0 deletions
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;