[Mplayer-cvslog] CVS: main/libvo vo_directfb.c,1.3,1.4

pl pl at mplayer.dev.hu
Tue Dec 18 22:43:17 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv27935

Modified Files:
	vo_directfb.c 
Log Message:
Applied patch by Jiri Svoboda <Jiri.Svoboda at seznam.cz>:
 -proper setting of bg color
 -turning BES at the end


Index: vo_directfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directfb.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vo_directfb.c	5 Dec 2001 18:23:38 -0000	1.3
+++ vo_directfb.c	18 Dec 2001 21:43:15 -0000	1.4
@@ -267,6 +267,13 @@
         if (!fb_dev_name && !(fb_dev_name = getenv("FRAMEBUFFER"))) fb_dev_name = "/dev/fb0";
         DFBCHECK (DirectFBSetOption ("fbdev",fb_dev_name));
 
+//	uncomment this if you do not wish to create a new vt for DirectFB
+//       DFBCHECK (DirectFBSetOption ("no-vt-switch",fb_dev_name));
+
+//	uncomment this if you want to allow vt switching
+//       DFBCHECK (DirectFBSetOption ("vt-switching",fb_dev_name));
+        DFBCHECK (DirectFBSetOption ("bg-color","00000000"));
+
         DFBCHECK (DirectFBCreate (&dfb));
         DFBCHECK (dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN));
 
@@ -564,24 +571,6 @@
    */
   DFBCHECK (keyboard->CreateInputBuffer (keyboard, &buffer));
 
-    // clear the screen
-
  if (no_yuy2) {DFBCHECK (primary->FillRectangle (primary, 0, 0, screen_width, screen_height));
}
-  else {
-     // create temporary surface and clean
-     DFBSurfaceDescription dsc;
-     DFBResult             ret;
-     IDirectFBSurface *primary = NULL;
-     int sh,sw;
-     
-     dsc.flags = DSDESC_CAPS;
-     dsc.caps  = DSCAPS_PRIMARY | DSCAPS_VIDEOONLY;//| DSCAPS_FLIPPING;
-     DFBCHECK (dfb->CreateSurface( dfb, &dsc, &primary));
-     DFBCHECK (primary->GetSize (primary, &sw, &sh));
-     DFBCHECK (primary->FillRectangle (primary, 0, 0, sw, sh));
-     primary->Release(primary);
-  
-  }
-
 // yuv2rgb transform init
 
  if (((format == IMGFMT_YV12) || (format == IMGFMT_YUY2)) && no_yuy2){ yuv2rgb_init(frame_pixel_size * 8,MODE_RGB);};
@@ -883,7 +872,9 @@
 // we will not release dfb and layer because there could be a new film
 
 //  printf("Release primary\n");
-//  primary->Release (primary);
+  primary->Release (primary);
+//  switch off BES
+  if (videolayer) videolayer->SetOpacity(videolayer,0);
 //  printf("Release videolayer\n");
 //  if (videolayer) videolayer->Release(videolayer);
 //  printf("Release dfb\n");




More information about the MPlayer-cvslog mailing list