summaryrefslogtreecommitdiff
path: root/multimedia/xine-lib/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-01-07 17:36:26 +0000
committerdrochner <drochner@pkgsrc.org>2007-01-07 17:36:26 +0000
commite86833292115fffe531d2a11ab0277ff17b4ebce (patch)
treedd6f29fe919f27a47dc30aadfc00382444ca61e4 /multimedia/xine-lib/patches
parenteee2dd4fe5a295149321d73f8726194e7f793117 (diff)
downloadpkgsrc-e86833292115fffe531d2a11ab0277ff17b4ebce.tar.gz
don't free() memory which resides in sysv shm (xine bug #1620339,
fixed in xine CVS) ride on PKGREVISION bump some hours ago
Diffstat (limited to 'multimedia/xine-lib/patches')
-rw-r--r--multimedia/xine-lib/patches/patch-ea30
1 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/xine-lib/patches/patch-ea b/multimedia/xine-lib/patches/patch-ea
new file mode 100644
index 00000000000..f93e5c19870
--- /dev/null
+++ b/multimedia/xine-lib/patches/patch-ea
@@ -0,0 +1,30 @@
+$NetBSD: patch-ea,v 1.1 2007/01/07 17:36:26 drochner Exp $
+
+--- src/video_out/video_out_xv.c.orig 2006-10-28 20:51:08.000000000 +0200
++++ src/video_out/video_out_xv.c
+@@ -187,7 +187,7 @@ static void xv_frame_dispose (vo_frame_t
+
+ if (frame->image) {
+
+- if (this->use_shm) {
++ if (frame->shminfo.shmaddr) {
+ LOCK_DISPLAY(this);
+ XShmDetach (this->display, &frame->shminfo);
+ XFree (frame->image);
+@@ -382,6 +382,7 @@ static XvImage *create_ximage (xv_driver
+
+ image = XvCreateImage (this->display, this->xv_port,
+ xv_format, data, width, height);
++ shminfo->shmaddr = 0;
+ }
+ return image;
+ }
+@@ -391,7 +392,7 @@ static void dispose_ximage (xv_driver_t
+ XShmSegmentInfo *shminfo,
+ XvImage *myimage) {
+
+- if (this->use_shm) {
++ if (shminfo->shmaddr) {
+
+ XShmDetach (this->display, shminfo);
+ XFree (myimage);