diff libvo/vosub_vidix.c @ 4739:a2df307ed979

Screenshot on the fly
author nick
date Sun, 17 Feb 2002 10:21:00 +0000
parents 227365bd93c7
children d3a52470594c
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Sun Feb 17 09:25:09 2002 +0000
+++ b/libvo/vosub_vidix.c	Sun Feb 17 10:21:00 2002 +0000
@@ -43,6 +43,8 @@
 static vidix_playback_t   vidix_play;
 static vidix_fourcc_t	  vidix_fourcc;
 static vo_functions_t *   vo_server;
+static uint32_t (*server_control)(uint32_t request, void *data, ...);
+
 
 static int  vidix_get_bes_da(bes_da_t *);
 static int  vidix_get_video_eq(vidix_video_eq_t *info);
@@ -635,6 +637,8 @@
     return VO_TRUE;
   case VOCTRL_QUERY_FORMAT:
     return vidix_query_fourcc(*((uint32_t*)data));
+  case VOCTRL_SCREENSHOT:
+    return (*server_control)(request,data);
   }
   return VO_NOTIMPL;
 }
@@ -668,6 +672,7 @@
 	((vo_functions_t *)server)->draw_frame=vidix_draw_frame;
 	((vo_functions_t *)server)->flip_page=vidix_flip_page;
 	((vo_functions_t *)server)->draw_osd=vidix_draw_osd;
+	server_control = ((vo_functions_t *)server)->control;
 	((vo_functions_t *)server)->control=vidix_control;
 	vo_server = server;
 	return 0;