Mercurial > mplayer.hg
diff libvo/vosub_vidix.c @ 4234:0ec1d81c8f94
sorry, i really wanted to add vidix_start and stop as int, to detect if something went into the wrong way (also implement check in vo_xvidix)
author | alex |
---|---|
date | Fri, 18 Jan 2002 10:41:31 +0000 |
parents | c7a8f3125805 |
children | a7d6ea555c2e |
line wrap: on
line diff
--- a/libvo/vosub_vidix.c Fri Jan 18 09:58:43 2002 +0000 +++ b/libvo/vosub_vidix.c Fri Jan 18 10:41:31 2002 +0000 @@ -164,7 +164,7 @@ vidix_video_eq_t vid_eq; -void vidix_start(void) +int vidix_start(void) { int err; @@ -188,7 +188,7 @@ if((err=vdlPlaybackOn(vidix_handler))!=0) { printf("vosub_vidix: Can't start playback: %s\n",strerror(err)); - return; + return -1; } vid_eq.brightness = vo_gamma_brightness; vid_eq.saturation = vo_gamma_saturation; @@ -199,16 +199,18 @@ vid_eq.blue_intense = vo_gamma_blue_intense; vid_eq.flags = VEQ_FLG_ITU_R_BT_601; vdlPlaybackSetEq(vidix_handler,&vid_eq); - return; + return 0; } -void vidix_stop(void) +int vidix_stop(void) { int err; if((err=vdlPlaybackOff(vidix_handler))!=0) { printf("vosub_vidix: Can't stop playback: %s\n",strerror(err)); + return -1; } + return 0; } void vidix_term( void )