summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 16:40:48 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 16:40:48 +0000
commit18fac2d9475e3292a8f7273a6811710f2539cd6b (patch)
tree4218292d58ac5139eec2133e0c53ad8a5e76fcd4 /libvo
parenteb4f31f73b05ae7c7f63bf182a5540bdec5da7fe (diff)
downloadmpv-18fac2d9475e3292a8f7273a6811710f2539cd6b.tar.bz2
mpv-18fac2d9475e3292a8f7273a6811710f2539cd6b.tar.xz
Remove code from unused and since ages deprecated draw_frame function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27917 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c22
-rw-r--r--libvo/vo_xv.c3
2 files changed, 2 insertions, 23 deletions
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 2bc17543de..a384c6f3f3 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -638,27 +638,7 @@ static int draw_slice(uint8_t * src[], int stride[], int w, int h,
static int draw_frame(uint8_t * src[])
{
-#if 0
- int stride[3] = { 0, 0, 0 };
-
- if (in_format == IMGFMT_YUY2)
- stride[0] = srcW * 2;
- else if (in_format == IMGFMT_BGR8)
- stride[0] = srcW;
- else if (in_format == IMGFMT_BGR15)
- stride[0] = srcW * 2;
- else if (in_format == IMGFMT_BGR16)
- stride[0] = srcW * 2;
- else if (in_format == IMGFMT_BGR24)
- stride[0] = srcW * 3;
- else if (in_format == IMGFMT_BGR32)
- stride[0] = srcW * 4;
-
- return draw_slice(src, stride, srcW, srcH, 0, 0);
-#else
- mp_msg(MSGT_VO,MSGL_INFO, MSGTR_LIBVO_X11_DrawFrameCalled);
- return -1;
-#endif
+ return VO_ERROR;
}
static uint32_t get_image(mp_image_t * mpi)
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 684d543c72..1019036476 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -551,8 +551,7 @@ static int draw_slice(uint8_t * image[], int stride[], int w, int h,
static int draw_frame(uint8_t * src[])
{
- mp_msg(MSGT_VO,MSGL_INFO, MSGTR_LIBVO_XV_DrawFrameCalled);
- return -1;
+ return VO_ERROR;
}
static uint32_t draw_image(mp_image_t * mpi)