From: Ewald S. <es...@us...> - 2002-04-01 22:19:31
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory usw-pr-cvs1:/tmp/cvs-serv27215/xine-lib/src/video_out Modified Files: video_out_xv.c Log Message: - Fix frame leak in Xv video driver - Frames can be freed by video driver until video driver' exit(), so you need to call this before vo_free_img_buffers() to avoid frame leak Index: video_out_xv.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/video_out_xv.c,v retrieving revision 1.109 retrieving revision 1.110 diff -u -r1.109 -r1.110 --- video_out_xv.c 27 Mar 2002 15:31:36 -0000 1.109 +++ video_out_xv.c 1 Apr 2002 22:19:27 -0000 1.110 @@ -744,7 +744,6 @@ } /* currently not used - we could have a method to call this from video loop */ -#if 0 static void xv_flush_recent_frames (xv_driver_t *this) { int i; @@ -757,7 +756,6 @@ this->recent_frames[i] = NULL; } } -#endif static int xv_redraw_needed (vo_driver_t *this_gen) { xv_driver_t *this = (xv_driver_t *) this_gen; @@ -1087,6 +1085,10 @@ printf ("video_out_xv: xv_exit: XvUngrabPort() failed.\n"); } XUnlockDisplay (this->display); + + xv_flush_recent_frames (this); + + free (this); } static int xv_check_yv12 (Display *display, XvPortID port) { |