Mercurial > mplayer.hg
comparison libvo/vo_ivtv.c @ 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 | 3b839a8d297a |
children | 2f43fee89f0e |
comparison
equal
deleted
inserted
replaced
19977:8ada6970000a | 19978:f04afca36cf4 |
---|---|
80 struct ivtv_cfg_start_decode sd1; | 80 struct ivtv_cfg_start_decode sd1; |
81 | 81 |
82 sd.hide_last = blank_screen; | 82 sd.hide_last = blank_screen; |
83 sd.pts_stop = 0; | 83 sd.pts_stop = 0; |
84 | 84 |
85 if (ioctl (ivtv_fd, IVTV_IOC_S_STOP_DECODE, &sd) < 0) | 85 if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0) |
86 { | 86 { |
87 mp_msg (MSGT_VO, MSGL_ERR, | 87 mp_msg (MSGT_VO, MSGL_ERR, |
88 "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno)); | 88 "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno)); |
89 return 1; | 89 return 1; |
90 } | 90 } |
91 | 91 |
92 sd1.gop_offset = 0; | 92 sd1.gop_offset = 0; |
93 sd1.muted_audio_frames = 0; | 93 sd1.muted_audio_frames = 0; |
94 | 94 |
95 if (ioctl (ivtv_fd, IVTV_IOC_S_START_DECODE, &sd1) < 0) | 95 if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0) |
96 { | 96 { |
97 mp_msg (MSGT_VO, MSGL_ERR, | 97 mp_msg (MSGT_VO, MSGL_ERR, |
98 "IVTV_IOC_START_DECODE: %s\n", strerror (errno)); | 98 "IVTV_IOC_START_DECODE: %s\n", strerror (errno)); |
99 return 1; | 99 return 1; |
100 } | 100 } |