summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mga.c
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 05:03:25 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 05:03:25 +0000
commita5dfcdf1576f5da33d57469ac939d095e87954fc (patch)
tree68c42b64b5acd705927529ea9b075e112e6e4976 /libvo/vo_mga.c
parent4d38521e2cd1e62ef334a73624cbd4a95f1de436 (diff)
downloadmpv-a5dfcdf1576f5da33d57469ac939d095e87954fc.tar.bz2
mpv-a5dfcdf1576f5da33d57469ac939d095e87954fc.tar.xz
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.c1
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;