This patches removes the spurious sleep(1), which limits the X11 output
rate to 1 FPS. It also removes a trace.
Please apply.
Lionel Debroux.
>From 6ac1007d49a5932a2b2fd5fb3b656a7eccfb3c83 Mon Sep 17 00:00:00 2001
From: Lionel Debroux <[EMAIL PROTECTED]>
Date: Sat, 16 Feb 2008 17:03:26 +0100
Subject: Remove a spurious sleep(1); which limited the X11 output framerate to 1 FPS, and remove a trace.
---
trunk/libvo/video_out_x11.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/trunk/libvo/video_out_x11.c b/trunk/libvo/video_out_x11.c
index 0e2f423..e70fd89 100644
--- a/trunk/libvo/video_out_x11.c
+++ b/trunk/libvo/video_out_x11.c
@@ -173,7 +173,6 @@ static int handle_error (Display * display, XErrorEvent * error)
static void * create_shm (x11_instance_t * instance, int size)
{
-fprintf(stderr, "create_shm\n");
instance->shminfo.shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | 0777);
if (instance->shminfo.shmid == -1)
goto error;
@@ -272,7 +271,6 @@ static void x11_draw_frame (vo_instance_t * _instance,
instance->width, instance->height);
XFlush (instance->display);
frame->wait_completion = instance->xshm;
-sleep(1);
}
static int x11_alloc_frames (x11_instance_t * instance, int xshm)
--
1.5.3.7
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmpeg2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel