From: James Courtier-D. <jcd...@us...> - 2002-04-29 23:32:04
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory usw-pr-cvs1:/tmp/cvs-serv22198/xine-lib/src/video_out Modified Files: deinterlace.c video_out_aa.c video_out_opengl.c video_out_syncfb.c video_out_xv.c yuv2rgb.c Log Message: Replace all exit(1) with abort(). xine-lib should really never do an exit or abort, but instead pass back nice error values to the calling application, but until that happens, use abort() as that is tracable with gdb, whereas exit(1) is not backtraceable. Index: deinterlace.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/deinterlace.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- deinterlace.c 10 Mar 2002 21:37:26 -0000 1.15 +++ deinterlace.c 29 Apr 2002 23:32:00 -0000 1.16 @@ -707,7 +707,7 @@ { printf("deinterlace: Fatal error, MMX instruction set needed!\n"); /* FIXME: is it possible to call some "nicer" xine exit function? */ - _exit(1); + abort(); } /* generic YUV deinterlacer Index: video_out_aa.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_aa.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- video_out_aa.c 26 Mar 2002 00:38:56 -0000 1.18 +++ video_out_aa.c 29 Apr 2002 23:32:00 -0000 1.19 @@ -168,7 +168,7 @@ frame->vo_frame.base[0] = malloc_aligned(16,image_size, (void**) &frame->mem[0]); } else { printf ("alert! unsupported image format %04x\n", format); - exit (1); + abort(); } frame->ratio_code = ratio_code; Index: video_out_opengl.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_opengl.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- video_out_opengl.c 26 Apr 2002 17:19:04 -0000 1.9 +++ video_out_opengl.c 29 Apr 2002 23:32:00 -0000 1.10 @@ -686,7 +686,7 @@ */ if (! glXMakeCurrent (this->display, this->drawable, ctx)) { fprintf (stderr, "video_out_opengl: no OpenGL support available (glXMakeCurrent)\n The drawable does not seem to be updated correctly.\n"); - exit (1); + abort(); } DEBUGF ((stderr, "set context done\n")); if (ctx == this->context) Index: video_out_syncfb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_syncfb.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -r1.64 -r1.65 --- video_out_syncfb.c 28 Apr 2002 18:55:13 -0000 1.64 +++ video_out_syncfb.c 29 Apr 2002 23:32:00 -0000 1.65 @@ -437,19 +437,19 @@ if(frame->id < 0 ) { printf("video_out_syncfb: aborted. (shared memory error in shmget)\n"); - exit(1); + abort(); } frame->vo_frame.base[0] = shmat(frame->id, 0, 0); if(frame->vo_frame.base[0] == NULL) { printf("video_out_syncfb: failed. (shared memory error => address error)\n"); - exit(1); + abort(); } if(frame->vo_frame.base[0] == (void *) -1) { printf("video_out_syncfb: failed. (shared memory error => address error)\n"); - exit(1); + abort(); } shmctl(frame->id, IPC_RMID, 0); Index: video_out_xv.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_xv.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -r1.113 -r1.114 --- video_out_xv.c 19 Apr 2002 22:58:46 -0000 1.113 +++ video_out_xv.c 29 Apr 2002 23:32:00 -0000 1.114 @@ -294,7 +294,7 @@ break; default: fprintf (stderr, "create_ximage: unknown format %08x\n",format); - exit (1); + abort(); } if (this->use_shm) { @@ -397,7 +397,7 @@ break; default: fprintf (stderr, "create_ximage: unknown format %08x\n",format); - exit (1); + abort(); } image = XvCreateImage (this->display, this->xv_port, Index: yuv2rgb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/yuv2rgb.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- yuv2rgb.c 26 Feb 2002 22:53:58 -0000 1.29 +++ yuv2rgb.c 29 Apr 2002 23:32:00 -0000 1.30 @@ -2321,7 +2321,7 @@ default: fprintf (stderr, "mode %d not supported by yuv2rgb\n", mode); - exit (1); + abort(); } for (i = 0; i < 256; i++) { @@ -2451,7 +2451,7 @@ default: printf ("yuv2rgb: mode %d not supported by yuv2rgb\n", this->mode); - exit (1); + abort(); } } @@ -2494,7 +2494,7 @@ default: printf ("yuv2rgb: mode %d not supported by yuv2rgb\n", this->mode); - exit (1); + abort(); } } |