1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00

correctly report audio input

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19300 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2006-08-03 18:59:37 +00:00
parent 70d49ab5e8
commit cbbbf761c3

View File

@ -801,16 +801,8 @@ v4l2_display_settings (struct pvr_t *pvr)
/* get current audio input */
if (ioctl (pvr->dev_fd, VIDIOC_G_AUDIO, &vaudio) == 0)
{
vaudio.index = input;
if (ioctl (pvr->dev_fd, VIDIOC_ENUMAUDIO, &vaudio) < 0)
{
mp_msg (MSGT_OPEN, MSGL_ERR,
"%s can't get input (%s).\n", LOG_LEVEL_V4L2, strerror (errno));
return -1;
}
else
mp_msg (MSGT_OPEN, MSGL_INFO,
"%s Audio input: %s\n", LOG_LEVEL_V4L2, vaudio.name);
mp_msg (MSGT_OPEN, MSGL_INFO,
"%s Audio input: %s\n", LOG_LEVEL_V4L2, vaudio.name);
}
else
{