changeset 19294:6e6b33b0b57e

correctly report audio input
author ben
date Thu, 03 Aug 2006 18:59:37 +0000
parents 67a441044abe
children f6316aa3a7f2
files stream/stream_pvr.c
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_pvr.c	Thu Aug 03 17:34:54 2006 +0000
+++ b/stream/stream_pvr.c	Thu Aug 03 18:59:37 2006 +0000
@@ -801,16 +801,8 @@
   /* 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
   {