aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pcm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pcm.c b/src/pcm.c
index b02883f..3900ee6 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -752,9 +752,7 @@ int pcm_readi(struct pcm *pcm, void *data, unsigned int frame_count)
x.frames = frame_count;
x.result = 0;
for (;;) {
- if ((!pcm->running) && (pcm_start(pcm) < 0))
- return -errno;
- else if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_READI_FRAMES, &x)) {
+ if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_READI_FRAMES, &x)) {
pcm->prepared = 0;
pcm->running = 0;
if (errno == EPIPE) {