changeset 19978:f04afca36cf4

use a more generic ioctl as the one used was deprecated with Linux 2.6.18 kernel
author ben
date Tue, 26 Sep 2006 21:10:50 +0000
parents 8ada6970000a
children 0dc175cbeed8
files libvo/vo_ivtv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_ivtv.c	Mon Sep 25 21:17:43 2006 +0000
+++ b/libvo/vo_ivtv.c	Tue Sep 26 21:10:50 2006 +0000
@@ -82,7 +82,7 @@
   sd.hide_last = blank_screen;
   sd.pts_stop = 0;
  
-  if (ioctl (ivtv_fd, IVTV_IOC_S_STOP_DECODE, &sd) < 0)
+  if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0)
   {
     mp_msg (MSGT_VO, MSGL_ERR,
             "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno));
@@ -92,7 +92,7 @@
   sd1.gop_offset = 0;
   sd1.muted_audio_frames = 0;
   
-  if (ioctl (ivtv_fd, IVTV_IOC_S_START_DECODE, &sd1) < 0)
+  if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0)
   {
     mp_msg (MSGT_VO, MSGL_ERR,
             "IVTV_IOC_START_DECODE: %s\n", strerror (errno));