]> git.sesse.net Git - vlc/commitdiff
* modules/access/pvr/pvr.c: Fixed width/height selection with latest ivtv
authorChristophe Massiot <massiot@videolan.org>
Fri, 21 Jan 2005 15:22:45 +0000 (15:22 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 21 Jan 2005 15:22:45 +0000 (15:22 +0000)
  drivers.

modules/access/pvr/pvr.c

index fe14293de99bf5bba4b752cca6168f343d1078c9..79cc45db585977951c9f0c0825c1c5bf53bc3168 100644 (file)
@@ -509,6 +509,7 @@ static int Open( vlc_object_t * p_this )
     /* set the picture size */
     if ( p_sys->i_width != -1 || p_sys->i_height != -1 )
     {
+        vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
         if ( ioctl( p_sys->i_fd, VIDIOC_G_FMT, &vfmt ) < 0 )
         {
             msg_Warn( p_access, "VIDIOC_G_FMT failed" );