[MPlayer-dev-eng] mplayer -screenw -screenh patch
Tomi Ollila
Tomi.Ollila at sonera.com
Mon Oct 22 13:49:30 CEST 2001
Hi
I read from the mailing list there are new options -screenw and -screenh
that (probably) should do something I desired...
So I downloaded the source and tried the options, but those options
did not seem to affect anything.
After investigating the issue, it seems, that after the configuration
options are read, later code reinitializes the vo_screenwidth and
vo_screenheight -values to something else.
Well, I tried the following patch to "fix" the problem -- and at least
for my purpose, it works...
(same patch is also attached in gzipped diff-file)
Tomi
$ diff -c MPlayer-20011022-orig/libvo/x11_common.c MPlayer-20011022/libvo/x11_common.c
*** MPlayer-20011022-orig/libvo/x11_common.c Wed Oct 10 04:48:23 2001
--- MPlayer-20011022/libvo/x11_common.c Mon Oct 22 14:40:16 2001
***************
*** 151,158 ****
else
#endif
{
! vo_screenwidth=DisplayWidth( mDisplay,mScreen );
! vo_screenheight=DisplayHeight( mDisplay,mScreen );
}
// get color depth (from root window, or the best visual):
XGetWindowAttributes(mDisplay, mRootWin, &attribs);
--- 151,160 ----
else
#endif
{
! if (! vo_screenwidth)
! vo_screenwidth=DisplayWidth( mDisplay,mScreen );
! if (! vo_screenheight)
! vo_screenheight=DisplayHeight( mDisplay,mScreen );
}
// get color depth (from root window, or the best visual):
XGetWindowAttributes(mDisplay, mRootWin, &attribs);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenwh.patch.gz
Type: application/octet-stream
Size: 325 bytes
Desc: patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011022/3b428702/attachment.obj>
More information about the MPlayer-dev-eng
mailing list