summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-02 12:21:13 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-02 12:21:13 +0000
commitc7e34e26a691c7d096aa4ea1489793f605ceb225 (patch)
tree221e0fd7217964a5e51ef98f0c2ecd5498594f5b /libvo
parent39b43167f0650b9e09dccf6a3ee780d2ab567335 (diff)
downloadmpv-c7e34e26a691c7d096aa4ea1489793f605ceb225.tar.bz2
mpv-c7e34e26a691c7d096aa4ea1489793f605ceb225.tar.xz
Fixed single buffering problems and -vo mga compatibility by number of buffers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3267 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vesa_lvo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/vesa_lvo.c b/libvo/vesa_lvo.c
index 40e32befa8..17083c1e7c 100644
--- a/libvo/vesa_lvo.c
+++ b/libvo/vesa_lvo.c
@@ -29,7 +29,7 @@
#include "video_out.h"
#define WIDTH_ALIGN 32 /* should be 16 for rage:422 and 32 for rage:420 */
-#define NUM_FRAMES 2
+#define NUM_FRAMES 10
#define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */
static uint8_t *frames[NUM_FRAMES];
@@ -211,9 +211,12 @@ uint32_t vlvo_draw_frame(uint8_t *image[])
void vlvo_flip_page(void)
{
if(verbose > 1) printf("vesa_lvo: vlvo_flip_page() was called\n");
+ if(vo_doublebuffering)
+ {
ioctl(lvo_handler,MGA_VID_FSEL,&next_frame);
next_frame=(next_frame+1)%mga_vid_config.num_frames;
lvo_mem=frames[next_frame];
+ }
}
static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)