comparison libvo/vo_xvidix.c @ 6311:da2dda48b7ec

add mute support ( step 1 ) and fixed panscan bugs (1000l for me)
author pontscho
date Thu, 06 Jun 2002 07:13:57 +0000
parents 72c87b2ec779
children 86d5fc5b54e2
comparison
equal deleted inserted replaced
6310:eda1e909a3bf 6311:da2dda48b7ec
368 else memset(&vtune,0,sizeof(vo_tune_info_t)); 368 else memset(&vtune,0,sizeof(vo_tune_info_t));
369 XFlush(mDisplay); 369 XFlush(mDisplay);
370 XSync(mDisplay, False); 370 XSync(mDisplay, False);
371 371
372 saver_off(mDisplay); /* turning off screen saver */ 372 saver_off(mDisplay); /* turning off screen saver */
373
374 vo_config_count++;
373 375
374 return(0); 376 return(0);
375 } 377 }
376 378
377 static const vo_info_t *get_info(void) 379 static const vo_info_t *get_info(void)
428 return(vidix_query_fourcc(format)); 430 return(vidix_query_fourcc(format));
429 } 431 }
430 432
431 static void uninit(void) 433 static void uninit(void)
432 { 434 {
435 if ( vo_config_count ) return;
433 vidix_term(); 436 vidix_term();
434 437
435 saver_on(mDisplay); /* screen saver back on */ 438 saver_on(mDisplay); /* screen saver back on */
436 vo_x11_uninit(); 439 vo_x11_uninit();
437 } 440 }
462 return VO_TRUE; 465 return VO_TRUE;
463 case VOCTRL_FULLSCREEN: 466 case VOCTRL_FULLSCREEN:
464 vo_x11_fullscreen(); 467 vo_x11_fullscreen();
465 return VO_TRUE; 468 return VO_TRUE;
466 case VOCTRL_GET_PANSCAN: 469 case VOCTRL_GET_PANSCAN:
470 if ( !vo_config_count || !vo_fs ) return VO_FALSE;
467 return VO_TRUE; 471 return VO_TRUE;
468 case VOCTRL_SET_PANSCAN: 472 case VOCTRL_SET_PANSCAN:
469 if ( vo_fs && ( vo_panscan != vo_panscan_amount ) ) 473 if ( vo_fs && ( vo_panscan != vo_panscan_amount ) )
470 { 474 {
471 panscan_calc(); 475 panscan_calc();