diff options
author | 2001-12-05 16:49:54 +0000 | |
---|---|---|
committer | 2001-12-05 16:49:54 +0000 | |
commit | fb5dacf470f6562a0378a528c819b497d62f5763 (patch) | |
tree | f46ad0f056c7f4e5cf7b4b8468d75a57370d2319 /libvo/vo_directfb.c | |
parent | 1530f0c84bce43f787ae8d2e927dd7421585adff (diff) |
compile if no uyvy support (test this change)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3340 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_directfb.c')
-rw-r--r-- | libvo/vo_directfb.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libvo/vo_directfb.c b/libvo/vo_directfb.c index 88d1b9f963..505aa07906 100644 --- a/libvo/vo_directfb.c +++ b/libvo/vo_directfb.c @@ -121,6 +121,7 @@ struct modes_t { static unsigned int best_bpp=5; static unsigned int preinit_done=0; static int no_yuy2=1; +static int no_uyvy_support=1; DFBEnumerationResult enum_modes_callback( unsigned int width,unsigned int height,unsigned int bpp, void *data) @@ -229,6 +230,18 @@ static uint32_t preinit() // if (!dfb) { DFBCHECK (DirectFBInit (NULL,NULL)); + + if ((directfb_major_version >= 0) && + (directfb_minor_version >= 9) && + (directfb_micro_version >= 7)) + no_uyvy_support = 0; + else + { + no_uyvy_support = 1; + printf("vo_directfb: no UYVY support. Version: %d.%d.%d\n", + directfb_major_version, directfb_minor_version, + directfb_micro_version); + } if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0"; DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name)); @@ -257,7 +270,7 @@ static uint32_t preinit() /* Test the configuration, getting failed fields */ ret = videolayer->TestConfiguration( videolayer, &dlc, &failed ); - if (ret == DFB_UNSUPPORTED) { + if (ret == DFB_UNSUPPORTED && no_uyvy_support == 0) { // printf("Videolayer does not support YUY2"); dlc.pixelformat = DSPF_UYVY; ret = videolayer->TestConfiguration( videolayer, &dlc, &failed ); |