diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-03 19:41:05 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-03 19:41:05 +0000 |
commit | 2a517f1e7f8f969e831a00484de007a495340acf (patch) | |
tree | 7be0a36ff84543f8e57fd2b0c24e001ee20ac0ad /src/video_out/video_out_xv.c | |
parent | 7bd733a3b7f549a9a28e2bea8d2b5fd5d95dcd89 (diff) | |
download | xine-lib-2a517f1e7f8f969e831a00484de007a495340acf.tar.gz xine-lib-2a517f1e7f8f969e831a00484de007a495340acf.tar.bz2 |
implemented vo_exit, frame_dispose
CVS patchset: 119
CVS date: 2001/06/03 19:41:05
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r-- | src/video_out/video_out_xv.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 139816e24..9c4121467 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.32 2001/06/03 19:11:06 guenter Exp $ + * $Id: video_out_xv.c,v 1.33 2001/06/03 19:41:05 guenter Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -143,10 +143,18 @@ static void xv_frame_field (vo_frame_t *vo_img, int which_field) { static void xv_frame_dispose (vo_frame_t *vo_img) { - /* xv_frame_t *frame = (xv_frame_t *) vo_img ;*/ + xv_frame_t *frame = (xv_frame_t *) vo_img ; + xv_driver_t *this = (xv_driver_t *) vo_img->instance->driver; - /* FIXME: implement */ + XLockDisplay (this->display); + XShmDetach (this->display, &frame->shminfo); + XFree (frame->image); + XUnlockDisplay (this->display); + shmdt (frame->shminfo.shmaddr); + shmctl (frame->shminfo.shmid, IPC_RMID,NULL); + + free (frame); } |