diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-29 05:03:25 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-29 05:03:25 +0000 |
commit | a5dfcdf1576f5da33d57469ac939d095e87954fc (patch) | |
tree | 68c42b64b5acd705927529ea9b075e112e6e4976 /libvo/vo_mga.c | |
parent | 4d38521e2cd1e62ef334a73624cbd4a95f1de436 (diff) |
quick hack to make vo_mga accept multiple calls to config
someone else should probably improve on this later
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5390 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r-- | libvo/vo_mga.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c index 9eaa6c5190..b7c9d361cf 100644 --- a/libvo/vo_mga.c +++ b/libvo/vo_mga.c @@ -62,6 +62,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin { char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; + if (f >= 0) mga_uninit(); if(!vo_screenwidth || !vo_screenheight) { int fd; struct fb_var_screeninfo fbinfo; |