Mercurial > mplayer.hg
changeset 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 | ef2abfbbd1df |
children | c6a61c091222 |
files | libvo/vosub_vidix.c libvo/vosub_vidix.h |
diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
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 )
--- a/libvo/vosub_vidix.h Fri Jan 18 09:58:43 2002 +0000 +++ b/libvo/vosub_vidix.h Fri Jan 18 10:41:31 2002 +0000 @@ -19,8 +19,8 @@ unsigned dest_x,unsigned dest_y,unsigned dst_width, unsigned dst_height,unsigned format,unsigned dest_bpp, unsigned vid_w,unsigned vid_h); -void vidix_start(void); -void vidix_stop(void); +int vidix_start(void); +int vidix_stop(void); void vidix_term( void ); uint32_t vidix_query_fourcc(unsigned fourcc);