summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-20 09:06:49 +0000
committeratmosfear <atmosfear@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-20 09:06:49 +0000
commit7853dd0e812ff44c032626c5aa1d3fdd640db41b (patch)
treee47eb75d3049c1a44276e71cca8e7d646fbb992d /libvo
parent188018eb0e35593ed081e6e6a45c337627134162 (diff)
downloadmpv-7853dd0e812ff44c032626c5aa1d3fdd640db41b.tar.bz2
mpv-7853dd0e812ff44c032626c5aa1d3fdd640db41b.tar.xz
doesn't include fastmemcpy.h when SDL_NOXV is defined.
(otherwise MPlayer crashes in fastmemcpy.h, needs to be FIXED!) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@543 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_sdl.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 212ee213cf..ccb524fddd 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -73,6 +73,13 @@
* to update this all the time.
*/
+/* define if you want to force Xv SDL output? */
+#undef SDL_FORCEXV
+/* define to force software-surface (video surface stored in system memory)*/
+#undef SDL_NOHWSURFACE
+/* define to disable usage of the xvideo extension */
+#undef SDL_NOXV
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -82,20 +89,16 @@
#include "video_out.h"
#include "video_out_internal.h"
+/* FIXME: MPlayer crashes in fastmemcpy.h when SDL_NOXV is defined! */
+#ifndef SDL_NOXV
#include "fastmemcpy.h"
+#endif
LIBVO_EXTERN(sdl)
//#include "log.h"
//#define LOG if(0)printf
-/* define if you want to force Xv SDL output? */
-#undef SDL_FORCEXV
-/* define to force software-surface (video surface stored in system memory)*/
-#undef SDL_NOHWSURFACE
-/* define to disable usage of the xvideo extension */
-#undef SDL_NOXV
-
static vo_info_t vo_info =
{
"SDL YUV overlay (SDL v1.1.7+ only!)",
@@ -385,22 +388,22 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
sdl_format = format;
switch(format){
case IMGFMT_YV12:
- printf("\nSDL: Using 0x%X (YV12) image format\n", format); break;
+ printf("SDL: Using 0x%X (YV12) image format\n", format); break;
case IMGFMT_IYUV:
- printf("\nSDL: Using 0x%X (IYUV) image format\n", format); break;
+ printf("SDL: Using 0x%X (IYUV) image format\n", format); break;
case IMGFMT_YUY2:
- printf("\nSDL: Using 0x%X (YUY2) image format\n", format); break;
+ printf("SDL: Using 0x%X (YUY2) image format\n", format); break;
case IMGFMT_UYVY:
- printf("\nSDL: Using 0x%X (UYVY) image format\n", format); break;
+ printf("SDL: Using 0x%X (UYVY) image format\n", format); break;
case IMGFMT_YVYU:
- printf("\nSDL: Using 0x%X (YVYU) image format\n", format); break;
+ printf("SDL: Using 0x%X (YVYU) image format\n", format); break;
case IMGFMT_I420:
- printf("\nSDL: Using 0x%X (I420) image format\n", format);
- printf("SDL: Mapping I420 to IYUV (untested please report if it works)\n");
+ printf("SDL: Using 0x%X (I420) image format\n", format);
+ printf("SDL: Mapping I420 to IYUV\n");
sdl_format = SDL_IYUV_OVERLAY;
break;
default:
- printf("\nSDL: Unsupported image format (0x%X)\n",format);
+ printf("SDL: Unsupported image format (0x%X)\n",format);
return -1;
}