[MPlayer-cvslog] r29161 - trunk/stream/tvi_v4l2.c

reimar subversion at mplayerhq.hu
Fri Apr 10 12:13:42 CEST 2009


Author: reimar
Date: Fri Apr 10 12:13:41 2009
New Revision: 29161

Log:
Reset the value of i so it is obvious from the output when we could not read the
current input setting.

Modified:
   trunk/stream/tvi_v4l2.c

Modified: trunk/stream/tvi_v4l2.c
==============================================================================
--- trunk/stream/tvi_v4l2.c	Thu Apr  9 22:20:00 2009	(r29160)
+++ trunk/stream/tvi_v4l2.c	Fri Apr 10 12:13:41 2009	(r29161)
@@ -1313,6 +1313,7 @@ static int init(priv_t *priv)
         }
         mp_msg(MSGT_TV, MSGL_INFO, " %d = %s;", i, input.name);
     }
+    i = -1;
     if (ioctl(priv->video_fd, VIDIOC_G_INPUT, &i) < 0) {
         mp_msg(MSGT_TV, MSGL_ERR, "%s: ioctl get input failed: %s\n",
                info.short_name, strerror(errno));


More information about the MPlayer-cvslog mailing list