diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-31 20:45:31 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-31 20:45:31 +0000 |
commit | cc0437f18cc6bb0bb2561057199453628e1323f9 (patch) | |
tree | c5eea10273554cd3d7b6fba84c35c502f9b213cc /libvo/vo_mga.c | |
parent | ceda41612a6c44ec06eb93dd8b1acc435bee144f (diff) | |
download | mpv-cc0437f18cc6bb0bb2561057199453628e1323f9.tar.bz2 mpv-cc0437f18cc6bb0bb2561057199453628e1323f9.tar.xz |
open(/dev/mga_vid) moved to preinit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5434 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_mga.c')
-rw-r--r-- | libvo/vo_mga.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c index b7c9d361cf..1bf4dd1982 100644 --- a/libvo/vo_mga.c +++ b/libvo/vo_mga.c @@ -60,9 +60,8 @@ static vo_info_t vo_info = static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format,const vo_tune_info_t *info) { -char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; - if (f >= 0) mga_uninit(); +// if (f >= 0) mga_uninit(); if(!vo_screenwidth || !vo_screenheight) { int fd; struct fb_var_screeninfo fbinfo; @@ -93,13 +92,6 @@ char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; } - f = open(devname,O_RDWR); - if(f == -1) - { - printf("Couldn't open %s\n",devname); - return(-1); - } - switch(format){ case IMGFMT_YV12: width+=width&1;height+=height&1; |