Mercurial > mplayer.hg
comparison libmpdemux/ai_alsa.c @ 7070:aaac9080b8a3
v4l capture update by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
some silly bugs slipped through.. here is the fix
author | arpi |
---|---|
date | Thu, 22 Aug 2002 23:05:58 +0000 |
parents | b14880a6cccb |
children | 13fcab6fde41 |
comparison
equal
deleted
inserted
replaced
7069:21e1ab99cb21 | 7070:aaac9080b8a3 |
---|---|
103 { | 103 { |
104 int err; | 104 int err; |
105 | 105 |
106 err = snd_pcm_open(&ai->alsa.handle, ai->alsa.device, SND_PCM_STREAM_CAPTURE, 0); | 106 err = snd_pcm_open(&ai->alsa.handle, ai->alsa.device, SND_PCM_STREAM_CAPTURE, 0); |
107 if (err < 0) { | 107 if (err < 0) { |
108 mp_msg(MSGT_TV, MSGL_ERR, "Error opening audio"); | 108 mp_msg(MSGT_TV, MSGL_ERR, "Error opening audio: %s\n", snd_strerror(err)); |
109 return -1; | 109 return -1; |
110 } | 110 } |
111 | 111 |
112 err = snd_output_stdio_attach(&ai->alsa.log, stderr, 0); | 112 err = snd_output_stdio_attach(&ai->alsa.log, stderr, 0); |
113 | 113 |