[MPlayer-cvslog] r32251 - in trunk: DOCS/xml/en/install.xml Makefile configure libvo/video_out.c libvo/vo_directfb2.c

diego subversion at mplayerhq.hu
Wed Sep 15 17:58:49 CEST 2010


Author: diego
Date: Wed Sep 15 17:58:48 2010
New Revision: 32251

Log:
Require DirectFB version 0.9.15 instead of 0.9.13.
This simplifies the build system at the cost of requiring a library
version that was released at the end rather than the middle of 2002.

Modified:
   trunk/Makefile
   trunk/configure
   trunk/libvo/video_out.c
   trunk/libvo/vo_directfb2.c

Changes in other areas also in this revision:
Modified:
   trunk/DOCS/xml/en/install.xml

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Wed Sep 15 11:25:20 2010	(r32250)
+++ trunk/Makefile	Wed Sep 15 17:58:48 2010	(r32251)
@@ -537,10 +537,9 @@ SRCS_MPLAYER-$(CACA)         += libvo/vo
 SRCS_MPLAYER-$(COREAUDIO)    += libao2/ao_coreaudio.c
 SRCS_MPLAYER-$(COREVIDEO)    += libvo/vo_corevideo.m libvo/osx_common.c
 SRCS_MPLAYER-$(DART)         += libao2/ao_dart.c
-SRCS_MPLAYER-$(DFBMGA)       += libvo/vo_dfbmga.c
 SRCS_MPLAYER-$(DGA)          += libvo/vo_dga.c
 SRCS_MPLAYER-$(DIRECT3D)     += libvo/vo_direct3d.c libvo/w32_common.c
-SRCS_MPLAYER-$(DIRECTFB)     += libvo/vo_directfb2.c
+SRCS_MPLAYER-$(DIRECTFB)     += libvo/vo_directfb2.c libvo/vo_dfbmga.c
 SRCS_MPLAYER-$(DIRECTX)      += libao2/ao_dsound.c libvo/vo_directx.c
 SRCS_MPLAYER-$(DXR2)         += libao2/ao_dxr2.c libvo/vo_dxr2.c
 SRCS_MPLAYER-$(DXR3)         += libvo/vo_dxr3.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	Wed Sep 15 11:25:20 2010	(r32250)
+++ trunk/configure	Wed Sep 15 17:58:48 2010	(r32251)
@@ -4281,14 +4281,13 @@ EOF
     _dfb_minor=$(echo $_directfb_version | cut -d . -f 2)
     _dfb_micro=$(echo $_directfb_version | cut -d . -f 3)
     _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro)
-    if test "$_dfb_version" -ge $(dfb_version 0 9 13); then
+    if test "$_dfb_version" -ge $(dfb_version 0 9 15); then
       def_directfb_version="#define DIRECTFBVERSION $_dfb_version"
       res_comment="$_directfb_version"
-      test "$_dfb_version" -ge $(dfb_version 0 9 15) && _dfbmga=yes
     else
       def_directfb_version='#undef DIRECTFBVERSION'
       _directfb=no
-      res_comment="version >=0.9.13 required"
+      res_comment="version >=0.9.15 required"
     fi
   else
     _directfb=no
@@ -4299,18 +4298,11 @@ echores "$_directfb"
 
 if test "$_directfb" = yes ; then
   def_directfb='#define CONFIG_DIRECTFB 1'
-  vomodules="directfb $vomodules"
+  vomodules="directfb dfbmga $vomodules"
   libs_mplayer="$libs_mplayer -ldirectfb"
 else
   def_directfb='#undef CONFIG_DIRECTFB'
-  novomodules="directfb $novomodules"
-fi
-if test "$_dfbmga" = yes; then
-  vomodules="dfbmga $vomodules"
-  def_dfbmga='#define CONFIG_DFBMGA 1'
-else
-  novomodules="dfbmga $novomodules"
-  def_dfbmga='#undef CONFIG_DFBMGA'
+  novomodules="directfb dfbmga $novomodules"
 fi
 
 
@@ -8280,7 +8272,6 @@ CDDB = $_cddb
 COREAUDIO = $_coreaudio
 COREVIDEO = $_corevideo
 DART = $_dart
-DFBMGA = $_dfbmga
 DGA = $_dga
 DIRECT3D = $_direct3d
 DIRECTFB = $_directfb
@@ -8814,7 +8805,6 @@ $def_aa
 $def_bl
 $def_caca
 $def_corevideo
-$def_dfbmga
 $def_dga
 $def_dga1
 $def_dga2

Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	Wed Sep 15 11:25:20 2010	(r32250)
+++ trunk/libvo/video_out.c	Wed Sep 15 17:58:48 2010	(r32251)
@@ -250,8 +250,6 @@ const vo_functions_t* const video_out_dr
 #endif
 #ifdef CONFIG_DIRECTFB
         &video_out_directfb,
-#endif
-#ifdef CONFIG_DFBMGA
         &video_out_dfbmga,
 #endif
 #ifdef CONFIG_VIDIX

Modified: trunk/libvo/vo_directfb2.c
==============================================================================
--- trunk/libvo/vo_directfb2.c	Wed Sep 15 11:25:20 2010	(r32250)
+++ trunk/libvo/vo_directfb2.c	Wed Sep 15 17:58:48 2010	(r32251)
@@ -57,7 +57,7 @@ static const vo_info_t info = {
 	"Direct Framebuffer Device",
 	"directfb",
 	"Jiri Svoboda Jiri.Svoboda at seznam.cz",
-	"v 2.0 (for DirectFB version >=0.9.13)"
+	"v 2.0 (for DirectFB version >=0.9.15)"
 };
 
 const LIBVO_EXTERN(directfb)
@@ -242,7 +242,7 @@ static int preinit(const char *arg)
 
 	if (((directfb_major_version <= 0) &&
 	    (directfb_minor_version <= 9) &&
-	    (directfb_micro_version < 13)))
+	    (directfb_micro_version < 15)))
 	{
 	    mp_msg(MSGT_VO, MSGL_ERR,"DirectFB: Unsupported DirectFB version\n");
 	    return 1;
@@ -570,7 +570,6 @@ static int config(uint32_t s_width, uint
 	} // vm end
 
 // just to be sure clear primary layer
-#if DIRECTFBVERSION > DFB_VERSION(0,9,13)
         ret = dfb->GetDisplayLayer( dfb, DLID_PRIMARY, &layer);
 	if (ret==DFB_OK) {
 	    ret = layer->GetSurface(layer,&primary);
@@ -586,7 +585,6 @@ static int config(uint32_t s_width, uint
         layer->Release(layer);
 	}
 	layer=NULL;
-#endif
 
 // find best layer
 
@@ -796,9 +794,7 @@ static int config(uint32_t s_width, uint
 
 // test surface for flipping
 	DFBCHECK(primary->GetCapabilities(primary,&caps));
-#if DIRECTFBVERSION > DFB_VERSION(0,9,13)
 	primary->Clear(primary,0,0,0,0xff);
-#endif
         flipping = 0;
 	if (caps & (DSCAPS_FLIPPING
 #ifdef TRIPLE
@@ -808,7 +804,6 @@ static int config(uint32_t s_width, uint
 	    ret = primary->Flip(primary,NULL,0);
 	    if (ret==DFB_OK) {
 		flipping = 1;
-#if DIRECTFBVERSION > DFB_VERSION(0,9,13)
 		primary->Clear(primary,0,0,0,0xff);
 #ifdef TRIPLE
 // if we have 3 buffers clean once more
@@ -818,7 +813,6 @@ static int config(uint32_t s_width, uint
 		flipping = 2;
 	}
 #endif
-#endif
 	    }
 	};
 


More information about the MPlayer-cvslog mailing list