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/mga_common.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/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index d63513a35b..e863f76976 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -292,6 +292,15 @@ static int mga_uninit(){ static uint32_t preinit(const char *arg) { + char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; + + f = open(devname,O_RDWR); + if(f == -1) + { + perror("open"); + printf("Couldn't open %s\n",devname); + return(-1); + } return 0; } |