mirror of
https://github.com/mpv-player/mpv
synced 2025-03-30 15:29:56 +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:
parent
70d49ab5e8
commit
cbbbf761c3
@ -801,16 +801,8 @@ v4l2_display_settings (struct pvr_t *pvr)
|
|||||||
/* get current audio input */
|
/* get current audio input */
|
||||||
if (ioctl (pvr->dev_fd, VIDIOC_G_AUDIO, &vaudio) == 0)
|
if (ioctl (pvr->dev_fd, VIDIOC_G_AUDIO, &vaudio) == 0)
|
||||||
{
|
{
|
||||||
vaudio.index = input;
|
mp_msg (MSGT_OPEN, MSGL_INFO,
|
||||||
if (ioctl (pvr->dev_fd, VIDIOC_ENUMAUDIO, &vaudio) < 0)
|
"%s Audio input: %s\n", LOG_LEVEL_V4L2, vaudio.name);
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user