changeset 36517:5d3f93051de9

Remove empty draw_slice and draw_frame stubs. Long term, draw_frame should be removed completely.
author reimar
date Sat, 18 Jan 2014 21:39:07 +0000
parents b726218447c9
children 3e7ce8fc870d
files libvo/mga_template.c libvo/vo_caca.c libvo/vo_cvidix.c libvo/vo_dfbmga.c libvo/vo_dga.c libvo/vo_direct3d.c libvo/vo_directfb2.c libvo/vo_dxr2.c libvo/vo_dxr3.c libvo/vo_fbdev.c libvo/vo_fbdev2.c libvo/vo_gif89a.c libvo/vo_gl.c libvo/vo_ivtv.c libvo/vo_jpeg.c libvo/vo_kva.c libvo/vo_matrixview.c libvo/vo_md5sum.c libvo/vo_mga.c libvo/vo_mng.c libvo/vo_mpegpes.c libvo/vo_null.c libvo/vo_png.c libvo/vo_pnm.c libvo/vo_s3fb.c libvo/vo_svga.c libvo/vo_tga.c libvo/vo_v4l2.c libvo/vo_vdpau.c libvo/vo_wii.c libvo/vo_winvidix.c libvo/vo_x11.c libvo/vo_xmga.c libvo/vo_xv.c libvo/vo_xvidix.c libvo/vo_xvmc.c libvo/vo_xvr100.c libvo/vo_yuv4mpeg.c libvo/vo_zr2.c libvo/vosub_vidix.c
diffstat 40 files changed, 48 insertions(+), 267 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_template.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/mga_template.c	Sat Jan 18 21:39:07 2014 +0000
@@ -140,13 +140,6 @@
 
 }
 
-static int
-draw_frame(uint8_t *src[])
-{
-    mp_msg(MSGT_VO,MSGL_WARN,"!!! mga::draw_frame() called !!!\n");
-    return 0;
-}
-
 static uint32_t get_image(mp_image_t *mpi){
     uint32_t bespitch = FFALIGN(mga_vid_config.src_width, 32);
     uint32_t bespitch2 = bespitch/2;
--- a/libvo/vo_caca.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_caca.c	Sat Jan 18 21:39:07 2014 +0000
@@ -35,6 +35,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "sub/sub.h"
 
@@ -178,11 +179,6 @@
     return 0;
 }
 
-static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
-{
-    return 0;
-}
-
 static void flip_page(void)
 {
     if (showosdmessage) {
--- a/libvo/vo_cvidix.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_cvidix.c	Sat Jan 18 21:39:07 2014 +0000
@@ -30,6 +30,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "aspect.h"
 #include "geometry.h"
@@ -121,7 +122,7 @@
 static void check_events(void){
 }
 
-/* draw_osd, flip_page, draw_slice, draw_frame should be
+/* draw_osd, flip_page, draw_slice should be
    overwritten with vidix functions (vosub_vidix.c) */
 static void draw_osd(void){
   mp_msg(MSGT_VO, MSGL_FATAL, "vo_cvidix: error: didn't use vidix draw_osd!\n");
@@ -138,11 +139,6 @@
   return -1;
 }
 
-static int draw_frame(uint8_t *src[]){
-  mp_msg(MSGT_VO, MSGL_FATAL, "vo_cvidix: error: didn't use vidix draw_frame!\n");
-  return -1;
-}
-
 static int query_format(uint32_t format){
   return vidix_query_fourcc(format);
 }
--- a/libvo/vo_dfbmga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_dfbmga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -30,6 +30,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "fastmemcpy.h"
@@ -1047,12 +1048,6 @@
 }
 
 static int
-draw_frame( uint8_t * src[] )
-{
-     return -1;
-}
-
-static int
 draw_slice( uint8_t * src[], int stride[], int w, int h, int x, int y )
 {
      uint8_t *dst;
--- a/libvo/vo_dga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_dga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -28,6 +28,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "aspect.h"
 #include "x11_common.h"
@@ -346,14 +347,6 @@
 
 //---------------------------------------------------------
 
-static int draw_slice(uint8_t * src[], int stride[],
-                           int w, int h, int x, int y)
-{
-    return 0;
-};
-
-//---------------------------------------------------------
-
 static int query_format(uint32_t format)
 {
 
--- a/libvo/vo_direct3d.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_direct3d.c	Sat Jan 18 21:39:07 2014 +0000
@@ -24,6 +24,7 @@
 #include <d3d9.h>
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "fastmemcpy.h"
 #include "mp_msg.h"
@@ -972,14 +973,6 @@
     return 0; /* Success */
 }
 
-/** @brief libvo Callback: Unused function
- */
-static int draw_frame(uint8_t *src[])
-{
-    mp_msg(MSGT_VO, MSGL_V, "<vo_direct3d>draw_frame called.\n");
-    return VO_FALSE;
-}
-
 /** @brief Maps MPlayer alpha to D3D
  *         0x0 -> transparent and discarded by alpha test
  *         0x1 -> 0xFF to become opaque
--- a/libvo/vo_directfb2.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_directfb2.c	Sat Jan 18 21:39:07 2014 +0000
@@ -31,6 +31,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "fastmemcpy.h"
@@ -1395,15 +1396,6 @@
   return VO_NOTIMPL;
 }
 
-// unused function
-
-static int draw_frame(uint8_t *src[])
-{
-	return -1;
-}
-
-// hopefully will be removed soon
-
 static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src,
 		unsigned char *srca, int stride)
 {
--- a/libvo/vo_dxr2.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_dxr2.c	Sat Jan 18 21:39:07 2014 +0000
@@ -33,6 +33,7 @@
 #include "config.h"
 #include "aspect.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "mp_msg.h"
 #include "m_option.h"
@@ -761,11 +762,6 @@
     sub_vo->flip_page();
 }
 
-static int draw_slice( uint8_t *srcimg[], int stride[], int w, int h, int x0, int y0 )
-{
-  return 0;
-}
-
 
 static int query_format(uint32_t format)
 {
--- a/libvo/vo_dxr3.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_dxr3.c	Sat Jan 18 21:39:07 2014 +0000
@@ -41,6 +41,7 @@
 #include "fastmemcpy.h"
 
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "aspect.h"
@@ -675,11 +676,6 @@
 	}
 }
 
-static int draw_slice(uint8_t *srcimg[], int stride[], int w, int h, int x0, int y0)
-{
-	return -1;
-}
-
 static void uninit(void)
 {
 	mp_msg(MSGT_VO,MSGL_INFO, MSGTR_LIBVO_DXR3_Uninitializing);
--- a/libvo/vo_fbdev.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_fbdev.c	Sat Jan 18 21:39:07 2014 +0000
@@ -41,6 +41,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "fastmemcpy.h"
 #include "sub/sub.h"
@@ -1054,11 +1055,6 @@
     (*draw_alpha_p)(w, h, src, srca, stride, dst, fb_line_len);
 }
 
-static int draw_frame(uint8_t *src[])
-{
-    return 1;
-}
-
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
     uint8_t *d;
--- a/libvo/vo_fbdev2.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_fbdev2.c	Sat Jan 18 21:39:07 2014 +0000
@@ -32,6 +32,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "fastmemcpy.h"
 #include "sub/sub.h"
@@ -371,9 +372,6 @@
 	vo_draw_text(in_width, in_height, draw_alpha);
 }
 
-// all csp support stride
-static int draw_frame(uint8_t *src[]) { return 1; }
-
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
 	uint8_t *in = src[0];
--- a/libvo/vo_gif89a.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_gif89a.c	Sat Jan 18 21:39:07 2014 +0000
@@ -54,6 +54,7 @@
 #include "config.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "mp_msg.h"
 
@@ -322,11 +323,6 @@
 	EGifPutLine(new_gif, reduce_data, img_width * img_height);
 }
 
-static int draw_frame(uint8_t *src[])
-{
-	return 1;
-}
-
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
 	uint8_t *dst, *frm;
--- a/libvo/vo_gl.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_gl.c	Sat Jan 18 21:39:07 2014 +0000
@@ -31,6 +31,7 @@
 #include "mp_msg.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "sub/font_load.h"
@@ -1135,12 +1136,6 @@
 }
 
 static int
-draw_frame(uint8_t *src[])
-{
-  return VO_ERROR;
-}
-
-static int
 query_format(uint32_t format)
 {
     int depth;
--- a/libvo/vo_ivtv.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_ivtv.c	Sat Jan 18 21:39:07 2014 +0000
@@ -45,6 +45,7 @@
 #include "mp_msg.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "vo_ivtv.h"
 #include "libmpdemux/mpeg_packetizer.h"
@@ -250,12 +251,6 @@
   pes = NULL;
 }
 
-static int
-draw_slice (uint8_t *image[], int stride[], int w, int h, int x, int y)
-{
-  return 0;
-}
-
 static void
 uninit (void)
 {
--- a/libvo/vo_jpeg.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_jpeg.c	Sat Jan 18 21:39:07 2014 +0000
@@ -43,6 +43,7 @@
 #include "subopt-helper.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "mp_core.h"
 #include "help_mp.h"
@@ -287,14 +288,6 @@
 
 /* ------------------------------------------------------------------------- */
 
-static int draw_slice(uint8_t *src[], int stride[], int w, int h,
-                           int x, int y)
-{
-    return 0;
-}
-
-/* ------------------------------------------------------------------------- */
-
 static int query_format(uint32_t format)
 {
     if (format == IMGFMT_RGB24) {
--- a/libvo/vo_kva.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_kva.c	Sat Jan 18 21:39:07 2014 +0000
@@ -39,6 +39,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "aspect.h"
@@ -1004,11 +1005,6 @@
     return VO_NOTIMPL;
 }
 
-static int draw_frame(uint8_t *src[])
-{
-    return VO_ERROR;
-}
-
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
     uint8_t *s;
--- a/libvo/vo_matrixview.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_matrixview.c	Sat Jan 18 21:39:07 2014 +0000
@@ -30,6 +30,7 @@
 #include "mp_msg.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "gl_common.h"
@@ -173,12 +174,6 @@
 }
 
 
-static int draw_frame(uint8_t *src[])
-{
-    return 0;
-}
-
-
 static int query_format(uint32_t format)
 {
     int caps = VFCAP_CSP_SUPPORTED | VFCAP_HWSCALE_UP | VFCAP_HWSCALE_DOWN | VFCAP_ACCEPT_STRIDE;
--- a/libvo/vo_md5sum.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_md5sum.c	Sat Jan 18 21:39:07 2014 +0000
@@ -39,6 +39,8 @@
 #include "subopt-helper.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "mp_core.h"			/* for exit_player() */
 #include "help_mp.h"
@@ -180,14 +182,6 @@
 
 /* ------------------------------------------------------------------------- */
 
-static int draw_frame(uint8_t *src[])
-{
-    mp_msg(MSGT_VO, MSGL_V, "%s: draw_frame() is called!\n", info.short_name);
-    return -1;
-}
-
-/* ------------------------------------------------------------------------- */
-
 static uint32_t draw_image(mp_image_t *mpi)
 {
     unsigned char md5sum[16];
@@ -241,14 +235,6 @@
 
 /* ------------------------------------------------------------------------- */
 
-static int draw_slice(uint8_t *src[], int stride[], int w, int h,
-                           int x, int y)
-{
-    return 0;
-}
-
-/* ------------------------------------------------------------------------- */
-
 static int query_format(uint32_t format)
 {
     switch (format) {
--- a/libvo/vo_mga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_mga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -26,6 +26,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 #include <sys/ioctl.h>
--- a/libvo/vo_mng.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_mng.c	Sat Jan 18 21:39:07 2014 +0000
@@ -38,6 +38,7 @@
 #include <libmng.h>
 
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "mp_msg.h"
 #include "subopt-helper.h"
@@ -514,18 +515,6 @@
 }
 
 /**
- * @brief put frame data onto canvas (not supported)
- * @return always 1 to indicate error
- */
-static int draw_frame(uint8_t *src[])
-{
-    /* draw_frame() not supported
-     * VFCAP_ACCEPT_STRIDE is set for format
-     * so draw_slice() will be called instead of this function */
-    return 1;
-}
-
-/**
  * @brief deinitialize MNG vo module
  */
 static void uninit(void)
--- a/libvo/vo_mpegpes.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_mpegpes.c	Sat Jan 18 21:39:07 2014 +0000
@@ -54,6 +54,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "libmpdemux/mpeg_packetizer.h"
 
@@ -215,12 +216,6 @@
 {
 }
 
-static int draw_slice(uint8_t *srcimg[], int stride[], int w,int h,int x0,int y0)
-{
-    return 0;
-}
-
-
 static int
 query_format(uint32_t format)
 {
--- a/libvo/vo_null.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_null.c	Sat Jan 18 21:39:07 2014 +0000
@@ -28,6 +28,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 static const vo_info_t info =
@@ -59,12 +60,6 @@
 }
 
 static int
-draw_frame(uint8_t *src[])
-{
-	return 0;
-}
-
-static int
 query_format(uint32_t format)
 {
     if (IMGFMT_IS_HWACCEL(format))
--- a/libvo/vo_png.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_png.c	Sat Jan 18 21:39:07 2014 +0000
@@ -36,6 +36,8 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "subopt-helper.h"
 #include "libavcodec/avcodec.h"
@@ -191,16 +193,6 @@
 
 static void flip_page (void){}
 
-static int draw_frame(uint8_t * src[])
-{
-    return -1;
-}
-
-static int draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y )
-{
-    return -1;
-}
-
 static int
 query_format(uint32_t format)
 {
--- a/libvo/vo_pnm.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_pnm.c	Sat Jan 18 21:39:07 2014 +0000
@@ -38,6 +38,8 @@
 #include "subopt-helper.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "mp_core.h"			/* for exit_player() */
 #include "help_mp.h"
@@ -504,22 +506,6 @@
 
 /* ------------------------------------------------------------------------- */
 
-static int draw_frame(uint8_t *src[])
-{
-    mp_msg(MSGT_VO, MSGL_V, "%s: draw_frame() is called!\n", info.short_name);
-    return -1;
-}
-
-/* ------------------------------------------------------------------------- */
-
-static int draw_slice(uint8_t *src[], int stride[], int w, int h,
-                           int x, int y)
-{
-    return 0;
-}
-
-/* ------------------------------------------------------------------------- */
-
 static int query_format(uint32_t format)
 {
     /* Ensure that for PPM we get Packed RGB and for PGM(YUV) we get
--- a/libvo/vo_s3fb.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_s3fb.c	Sat Jan 18 21:39:07 2014 +0000
@@ -42,6 +42,7 @@
 #include "mp_msg.h"
 #include "fastmemcpy.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "aspect.h"
 #include "sub/sub.h"
@@ -493,11 +494,6 @@
   return 0;
 }
 
-static int draw_slice(uint8_t *i[], int s[], int w, int h, int x, int y)
-{
-  return 1;
-}
-
 /* Attempt to start doing DR */
 static uint32_t get_image(mp_image_t *mpi)
 {
--- a/libvo/vo_svga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_svga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -52,6 +52,8 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "fastmemcpy.h"
 #include "osdep/getch2.h"
@@ -553,17 +555,6 @@
     return 0;
 }
 
-static int draw_slice(uint8_t *image[],int stride[],
-               int w, int h, int x, int y) {
-    assert(0);
-    return VO_ERROR;//this is yv12 only -> vf_scale should do all transforms
-}
-
-static int draw_frame(uint8_t *src[]) {
-    assert(0);
-    return VO_ERROR;//this one should not be called
-}
-
 static void draw_osd(void)
 {
     mp_msg(MSGT_VO,MSGL_DBG4, "vo_svga: draw_osd()\n");
--- a/libvo/vo_tga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_tga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -53,6 +53,8 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 
 static const vo_info_t info =
@@ -181,16 +183,6 @@
     return;
 }
 
-static int draw_slice(uint8_t *srcimg[], int stride[], int w,int h,int x,int y)
-{
-    return -1;
-}
-
-static int draw_frame(uint8_t * src[])
-{
-    return -1;
-}
-
 static int query_format(uint32_t format)
 {
     switch(format){
--- a/libvo/vo_v4l2.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_v4l2.c	Sat Jan 18 21:39:07 2014 +0000
@@ -40,6 +40,7 @@
 #include "mp_msg.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "libmpdemux/mpeg_packetizer.h"
 #include "vo_v4l2.h"
@@ -221,12 +222,6 @@
   pes = NULL;
 }
 
-static int
-draw_slice (uint8_t *image[], int stride[], int w, int h, int x, int y)
-{
-  return 0;
-}
-
 static void
 uninit (void)
 {
--- a/libvo/vo_vdpau.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_vdpau.c	Sat Jan 18 21:39:07 2014 +0000
@@ -39,6 +39,7 @@
 #include "sub/ass_mp.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "x11_common.h"
@@ -1042,11 +1043,6 @@
 }
 
 
-static int draw_frame(uint8_t *src[])
-{
-    return VO_ERROR;
-}
-
 static struct vdpau_render_state *get_surface(int number)
 {
     if (number >= MAX_VIDEO_SURFACES)
--- a/libvo/vo_wii.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_wii.c	Sat Jan 18 21:39:07 2014 +0000
@@ -50,6 +50,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "sub/sub.h"
 #include "mp_msg.h"
@@ -268,11 +269,6 @@
   vo_draw_alpha_yuy2(w, h, src, srca, stride, dst, fb_line_len);
 }
 
-static int draw_frame(uint8_t *src[])
-{
-  return 1;
-}
-
 static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y)
 {
   uint8_t *d, *s;
--- a/libvo/vo_winvidix.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_winvidix.c	Sat Jan 18 21:39:07 2014 +0000
@@ -28,6 +28,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 #include <windows.h>
@@ -279,7 +280,7 @@
     }
 }
 
-/* draw_osd, flip_page, draw_slice, draw_frame should be
+/* draw_osd, flip_page, draw_slice should be
    overwritten with vidix functions (vosub_vidix.c) */
 static void draw_osd(void){
     mp_msg(MSGT_VO, MSGL_FATAL, "[winvidix] error: didn't use vidix draw_osd!\n");
@@ -296,11 +297,6 @@
     return -1;
 }
 
-static int draw_frame(uint8_t *src[]){
-    mp_msg(MSGT_VO, MSGL_FATAL, "[winvidix] error: didn't use vidix draw_frame!\n");
-    return -1;
-}
-
 static int query_format(uint32_t format){
   return vidix_query_fourcc(format);
 }
--- a/libvo/vo_x11.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_x11.c	Sat Jan 18 21:39:07 2014 +0000
@@ -22,6 +22,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 #include "aspect.h"
@@ -495,11 +496,6 @@
     return 0;
 }
 
-static int draw_frame(uint8_t * src[])
-{
-    return VO_ERROR;
-}
-
 static uint32_t get_image(mp_image_t * mpi)
 {
     if (zoomFlag ||
--- a/libvo/vo_xmga.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_xmga.c	Sat Jan 18 21:39:07 2014 +0000
@@ -27,6 +27,7 @@
 #include "config.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 
--- a/libvo/vo_xv.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_xv.c	Sat Jan 18 21:39:07 2014 +0000
@@ -42,6 +42,7 @@
 #include "mp_msg.h"
 #include "help_mp.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "libmpcodecs/vf.h"
 
@@ -417,11 +418,6 @@
     return 0;
 }
 
-static int draw_frame(uint8_t * src[])
-{
-    return VO_ERROR;
-}
-
 static uint32_t draw_image(mp_image_t * mpi)
 {
     if (mpi->flags & MP_IMGFLAG_DIRECT)
--- a/libvo/vo_xvidix.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_xvidix.c	Sat Jan 18 21:39:07 2014 +0000
@@ -32,6 +32,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 #include <X11/Xlib.h>
@@ -316,7 +317,7 @@
     return;
 }
 
-/* draw_osd, flip_page, draw_slice, draw_frame should be
+/* draw_osd, flip_page, draw_slice should be
    overwritten with vidix functions (vosub_vidix.c) */
 static void draw_osd(void)
 {
@@ -340,13 +341,6 @@
     return -1;
 }
 
-static int draw_frame(uint8_t * src[])
-{
-    mp_msg(MSGT_VO, MSGL_FATAL,
-           "[xvidix] error: didn't used vidix draw_frame!\n");
-    return -1;
-}
-
 static int query_format(uint32_t format)
 {
     return vidix_query_fourcc(format);
--- a/libvo/vo_xvmc.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_xvmc.c	Sat Jan 18 21:39:07 2014 +0000
@@ -24,6 +24,7 @@
 #include "config.h"
 #include "mp_msg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "osdep/timer.h"
 #include "libmpcodecs/vf.h"
@@ -729,10 +730,6 @@
     return 0;
 }
 
-static int draw_frame(uint8_t *srcp[]){
-    assert(0);
-}
-
 static void init_osd_yuv_pal(void) {
     char * palette;
     int rez;
--- a/libvo/vo_xvr100.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_xvr100.c	Sat Jan 18 21:39:07 2014 +0000
@@ -44,6 +44,7 @@
 
 #include "config.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 #include "aspect.h"
 #include "geometry.h"
@@ -369,12 +370,6 @@
     return VO_TRUE;
 }
 
-static int draw_frame(uint8_t *src[])
-{
-    mp_msg(MSGT_VO,MSGL_WARN,"!!! vo_xvr100::draw_frame() called !!!\n");
-    return 0;
-}
-
 
 static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
 {
--- a/libvo/vo_yuv4mpeg.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_yuv4mpeg.c	Sat Jan 18 21:39:07 2014 +0000
@@ -47,6 +47,7 @@
 #include "config.h"
 #include "subopt-helper.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
 #include "video_out_internal.h"
 
 #include "mp_msg.h"
@@ -221,12 +222,6 @@
 	return 0;
 }
 
-static int draw_frame(uint8_t * src[])
-{
-			// gets done in draw_slice
-    return 0;
-}
-
 static int query_format(uint32_t format)
 {
 	if (format == IMGFMT_YV12)
--- a/libvo/vo_zr2.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vo_zr2.c	Sat Jan 18 21:39:07 2014 +0000
@@ -38,6 +38,8 @@
 #include "config.h"
 #include "videodev_mjpeg.h"
 #include "video_out.h"
+#define NO_DRAW_FRAME
+#define NO_DRAW_SLICE
 #include "video_out_internal.h"
 #include "mp_msg.h"
 #include "subopt-helper.h"
@@ -461,15 +463,6 @@
 	return VO_NOTIMPL;
 }
 
-static int draw_frame(uint8_t *src[]) {
-	return 0;
-}
-
-static int draw_slice(uint8_t *image[], int stride[],
-		int w, int h, int x, int y) {
- 	return 0;
-}
-
 static void draw_osd(void) {
 }
 
--- a/libvo/vosub_vidix.c	Sat Jan 18 20:41:46 2014 +0000
+++ b/libvo/vosub_vidix.c	Sat Jan 18 21:39:07 2014 +0000
@@ -271,12 +271,6 @@
     return VO_TRUE;
 }
 
-static int vidix_draw_frame(uint8_t *image[])
-{
-  mp_msg(MSGT_VO,MSGL_WARN, MSGTR_LIBVO_SUB_VIDIX_DummyVidixdrawframeWasCalled);
-  return -1;
-}
-
 static void     vidix_flip_page(void)
 {
   if( mp_msg_test(MSGT_VO,MSGL_DBG2) ) {
@@ -692,7 +686,7 @@
 	mp_msg(MSGT_VO,MSGL_V, "[VO_SUB_VIDIX] Author: %s.\n", vidix_cap.author);
 	/* we are able to tune up this stuff depend on fourcc format */
 	server->draw_slice=vidix_draw_slice;
-	server->draw_frame=vidix_draw_frame;
+	server->draw_frame=NULL;
 	server->flip_page=vidix_flip_page;
 	server->draw_osd=vidix_draw_osd;
 //	server_control = server->control;