comparison libvo/vo_dxr3.c @ 4604:c24f72161c37

ARGH, changing playback speed was a mistake...
author mswitch
date Sat, 09 Feb 2002 11:15:11 +0000
parents 06944da0b4f7
children b63ebfab3cdd
comparison
equal deleted inserted replaced
4603:06944da0b4f7 4604:c24f72161c37
326 return -1; 326 return -1;
327 } 327 }
328 328
329 static void flip_page(void) 329 static void flip_page(void)
330 { 330 {
331 if (!vo_pts) {
332 ioval = (90000.0 / vo_fps);
333 ioctl(fd_control, EM8300_IOCTL_SCR_SETSPEED, &ioval);
334 }
335 #ifdef USE_LIBAVCODEC 331 #ifdef USE_LIBAVCODEC
336 if (img_format == IMGFMT_YV12) { 332 if (img_format == IMGFMT_YV12) {
337 int out_size = avcodec_encode_video(avc_context, avc_outbuf, avc_outbuf_size, &avc_picture); 333 int out_size = avcodec_encode_video(avc_context, avc_outbuf, avc_outbuf_size, &avc_picture);
338 ioctl(fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts); 334 ioctl(fd_video, EM8300_IOCTL_VIDEO_SETPTS, &vo_pts);
339 write(fd_video, avc_outbuf, out_size); 335 write(fd_video, avc_outbuf, out_size);
391 } 387 }
392 388
393 static void uninit(void) 389 static void uninit(void)
394 { 390 {
395 printf("VO: [dxr3] Uninitializing\n"); 391 printf("VO: [dxr3] Uninitializing\n");
396 /* Set the default playback speed to 0x900 */
397 ioval = 0x900;
398 ioctl(fd_control, EM8300_IOCTL_SCR_SETSPEED, &ioval);
399 #ifdef USE_LIBAVCODEC 392 #ifdef USE_LIBAVCODEC
400 if (avc_context) { 393 if (avc_context) {
401 avcodec_close(avc_context); 394 avcodec_close(avc_context);
402 } 395 }
403 if (picture_buf) { 396 if (picture_buf) {