# HG changeset patch # User pontscho # Date 1025616728 0 # Node ID d6c07ebda74633d8f6a18e045d03d4d1a4fbfb27 # Parent 5e9b842fd06e4e4ee4c407bcd4ce1a01ac434091 fix compile bug with driver 0.9+ diff -r 5e9b842fd06e -r d6c07ebda746 libvo/vo_dxr3.c --- a/libvo/vo_dxr3.c Sun Jun 30 22:10:47 2002 +0000 +++ b/libvo/vo_dxr3.c Tue Jul 02 13:32:08 2002 +0000 @@ -264,16 +264,21 @@ } /* Start em8300 prebuffering and sync engine */ +#ifdef MVCOMMAND_SYNC reg.microcode_register = 1; reg.reg = 0; reg.val = MVCOMMAND_SYNC; ioctl(fd_control, EM8300_IOCTL_WRITEREG, ®); - +#endif + +#ifdef EM8300_IOCTL_FLUSH /* Clean buffer by syncing it */ ioval = EM8300_SUBDEVICE_VIDEO; ioctl(fd_control, EM8300_IOCTL_FLUSH, &ioval); ioval = EM8300_SUBDEVICE_AUDIO; ioctl(fd_control, EM8300_IOCTL_FLUSH, &ioval); +#endif + fsync(fd_video); if (!noprebuf) { ioval = 0x900; @@ -293,6 +298,7 @@ /* libavcodec requires a width and height that is x|16 */ aspect_save_orig(width, height); aspect_save_prescale(d_width, d_height); +#ifdef EM8300_IOCTL_GET_VIDEOMODE ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); if (ioval == EM8300_VIDEOMODE_NTSC) { printf("VO: [dxr3] Setting up for NTSC.\n"); @@ -301,6 +307,7 @@ printf("VO: [dxr3] Setting up for PAL/SECAM.\n"); aspect_save_screenres(352, 288); } +#endif aspect(&s_width, &s_height, A_ZOOM); s_width -= s_width % 16; s_height -= s_height % 16; @@ -405,7 +412,8 @@ memset(avc_context, 0, sizeof(AVCodecContext)); avc_context->width = s_width; avc_context->height = s_height; - ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); +// realy need this line ? -- Pontscho +// ioctl(fd_control, EM8300_IOCTL_GET_VIDEOMODE, &ioval); avc_context->gop_size = 7; avc_context->frame_rate = (int) (vo_fps * FRAME_RATE_BASE); avc_context->bit_rate = 0;