From 80caba0a146ec0e72622557b8e44a670517f821e Mon Sep 17 00:00:00 2001 From: veego Date: Mon, 20 May 2002 23:03:37 +0000 Subject: [PATCH] ogle now continues if the SHM test fails. This could help people who don't increase SHMMAXPGS to 16384. XXX This cause some performance lose, so be preparted to not see the full speed of ogle if you don't increase SHMMAXPGS. This patch was needed to debug a problem with Xvideo. Approved by Alistair Crooks. --- graphics/ogle/patches/patch-ac | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 graphics/ogle/patches/patch-ac diff --git a/graphics/ogle/patches/patch-ac b/graphics/ogle/patches/patch-ac new file mode 100644 index 000000000000..4dc0389ff6db --- /dev/null +++ b/graphics/ogle/patches/patch-ac @@ -0,0 +1,34 @@ +$NetBSD: patch-ac,v 1.1 2002/05/20 23:03:37 veego Exp $ + +--- mpeg2_video/video_output_x11.c.orig Sun Dec 2 22:38:00 2001 ++++ mpeg2_video/video_output_x11.c Tue May 21 00:47:58 2002 +@@ -1751,7 +1751,7 @@ + window.video_area.width) / 2; + window.video_area.y = (int)(window.window_area.height - + window.video_area.height) / 2; +- ++ if(use_xshm) { + XvShmPutImage(mydisplay, xv_port, dwin->win, mygc, xv_image, + 0, 0, + dwin->image->info->picture.horizontal_size, +@@ -1761,9 +1761,18 @@ + window.video_area.width, + window.video_area.height, + True); +- ++ } else { ++ XvPutImage(mydisplay, xv_port, dwin->win, mygc, xv_image, ++ 0, 0, ++ dwin->image->info->picture.horizontal_size, ++ dwin->image->info->picture.vertical_size, ++ window.video_area.x, ++ window.video_area.y, ++ window.video_area.width, ++ window.video_area.height); ++ } + //XFlush(mydisplay); ?? +- { ++ if(use_xshm) { + XEvent ev; + XEvent *e; + e = &ev;