[MPlayer-dev-eng] another -wid patches

Markus Rechberger revenger at shell.dnload.com
Wed Jun 19 02:51:29 CEST 2002


Hmm.. my second path (fixing the video size) doesn't work on AMD right? 
.. but well it doesn't work without that patch on my Piii intel 900 MHZ 
laptop.. should I go on working on my patch or do u guys already know 
what's wrong?

my plugin (www.webfreetv.com/linux/wftv.tar.bz2 does already work with 
debian 3.0; redhat 7.1, mandrake 7or8.1)
I'm no professional -but I still learn more about everything  :)

Markus

Markus Rechberger wrote:

> patch1.diff fixes:
> vo_x11.c
> XMapWindow (vo_x11.c didn't map the Window after using -wid 0x....)
> bugs/todo:
> movies/clips don't fit into the target window
>
> patch2.diff fixes:
> vo_xv.c
> 1.) get size of target window (XGetGeometry)
> 2.) set output size to XGetGeometry's resolved values
>
> Markus
>
>------------------------------------------------------------------------
>
>--- vo_x11_old.c	Sat Jun 15 01:40:02 2002
>+++ vo_x11.c	Sat Jun 15 01:44:40 2002
>@@ -333,6 +333,7 @@
>         XUnmapWindow( mDisplay,vo_window );
>         XChangeWindowAttributes( mDisplay,vo_window,xswamask,&xswa );
> 	XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask );
>+	XMapWindow( mDisplay,vo_window );
>        } else XSelectInput( mDisplay,vo_window,ExposureMask );
>     }
>     else
>  
>
>------------------------------------------------------------------------
>
>--- vo_xv_old.c	Sat Jun 15 01:40:50 2002
>+++ vo_xv.c	Sat Jun 15 01:43:53 2002
>@@ -431,6 +431,7 @@
>         XUnmapWindow( mDisplay,vo_window );
>         XChangeWindowAttributes( mDisplay,vo_window,xswamask,&xswa );
> 	XSelectInput( mDisplay,vo_window,StructureNotifyMask | KeyPressMask | PropertyChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ExposureMask );
>+	XGetGeometry( mDisplay,vo_window,NULL,NULL,NULL,&vo_dwidth,&vo_dheight,NULL,NULL );
>         XMapWindow( mDisplay,vo_window );
>        } else { drwX=vo_dx; drwY=vo_dy; }
>     } else 
>@@ -489,8 +490,10 @@
>      current_buf=0;
> 
>      set_gamma_correction();
>-
>-     aspect(&vo_dwidth,&vo_dheight,A_NOZOOM);
>+     if ( !WinID )
>+      {
>+     	aspect(&vo_dwidth,&vo_dheight,A_NOZOOM);
>+      }
>      if ( ( flags&1 )&&( !WinID ) )
>       {
>        aspect(&vo_dwidth,&vo_dheight,A_ZOOM);
>  
>






More information about the MPlayer-dev-eng mailing list