aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcm.c b/src/pcm.c
index ac454b0..3a9deec 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -993,7 +993,8 @@ int pcm_prepare(struct pcm *pcm)
int pcm_start(struct pcm *pcm)
{
/* set appl_ptr and avail_min in kernel */
- pcm_sync_ptr(pcm, 0);
+ if (pcm_sync_ptr(pcm, 0) < 0)
+ return -1;
if (pcm->mmap_status->state != PCM_STATE_RUNNING) {
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_START) < 0)