comparison stream/stream_pvr.c @ 19294:6e6b33b0b57e

correctly report audio input
author ben
date Thu, 03 Aug 2006 18:59:37 +0000
parents 64d82a45a05d
children 75063178d39f
comparison
equal deleted inserted replaced
19293:67a441044abe 19294:6e6b33b0b57e
799 } 799 }
800 800
801 /* get current audio input */ 801 /* get current audio input */
802 if (ioctl (pvr->dev_fd, VIDIOC_G_AUDIO, &vaudio) == 0) 802 if (ioctl (pvr->dev_fd, VIDIOC_G_AUDIO, &vaudio) == 0)
803 { 803 {
804 vaudio.index = input; 804 mp_msg (MSGT_OPEN, MSGL_INFO,
805 if (ioctl (pvr->dev_fd, VIDIOC_ENUMAUDIO, &vaudio) < 0) 805 "%s Audio input: %s\n", LOG_LEVEL_V4L2, vaudio.name);
806 {
807 mp_msg (MSGT_OPEN, MSGL_ERR,
808 "%s can't get input (%s).\n", LOG_LEVEL_V4L2, strerror (errno));
809 return -1;
810 }
811 else
812 mp_msg (MSGT_OPEN, MSGL_INFO,
813 "%s Audio input: %s\n", LOG_LEVEL_V4L2, vaudio.name);
814 } 806 }
815 else 807 else
816 { 808 {
817 mp_msg (MSGT_OPEN, MSGL_ERR, 809 mp_msg (MSGT_OPEN, MSGL_ERR,
818 "%s can't get input (%s).\n", LOG_LEVEL_V4L2, strerror (errno)); 810 "%s can't get input (%s).\n", LOG_LEVEL_V4L2, strerror (errno));