diff options
author | veego <veego@pkgsrc.org> | 2002-05-20 23:03:37 +0000 |
---|---|---|
committer | veego <veego@pkgsrc.org> | 2002-05-20 23:03:37 +0000 |
commit | 80caba0a146ec0e72622557b8e44a670517f821e (patch) | |
tree | a9c67267344464759d438992d7d5d436950f5f01 /graphics/ogle | |
parent | f29b16bdfbff4fab4cc93a80cd6b7162b7983452 (diff) | |
download | pkgsrc-80caba0a146ec0e72622557b8e44a670517f821e.tar.gz |
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.
Diffstat (limited to 'graphics/ogle')
-rw-r--r-- | graphics/ogle/patches/patch-ac | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/ogle/patches/patch-ac b/graphics/ogle/patches/patch-ac new file mode 100644 index 00000000000..4dc0389ff6d --- /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; |