comparison libvo/vo_xmga.c @ 8148:5b39e79af5fe

removed get_info, using the same sheme as in libmpcodecs instead
author alex
date Mon, 11 Nov 2002 15:22:10 +0000
parents a57aac3a927a
children edfe34c5405d
comparison
equal deleted inserted replaced
8147:538f88a49b50 8148:5b39e79af5fe
15 #include "config.h" 15 #include "config.h"
16 16
17 #include "video_out.h" 17 #include "video_out.h"
18 #include "video_out_internal.h" 18 #include "video_out_internal.h"
19 19
20 LIBVO_EXTERN( xmga )
21 20
22 #include <sys/ioctl.h> 21 #include <sys/ioctl.h>
23 #include <unistd.h> 22 #include <unistd.h>
24 #include <fcntl.h> 23 #include <fcntl.h>
25 #include <sys/mman.h> 24 #include <sys/mman.h>
46 45
47 #ifdef HAVE_NEW_GUI 46 #ifdef HAVE_NEW_GUI
48 #include "../Gui/interface.h" 47 #include "../Gui/interface.h"
49 #endif 48 #endif
50 49
51 static vo_info_t vo_info = 50 static vo_info_t info =
52 { 51 {
53 "Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)", 52 "Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)",
54 "xmga", 53 "xmga",
55 "Zoltan Ponekker <pontscho@makacs.poliod.hu>", 54 "Zoltan Ponekker <pontscho@makacs.poliod.hu>",
56 "" 55 ""
57 }; 56 };
57
58 LIBVO_EXTERN( xmga )
59
58 60
59 static XGCValues wGCV; 61 static XGCValues wGCV;
60 62
61 static uint32_t mDepth; 63 static uint32_t mDepth;
62 static XWindowAttributes attribs; 64 static XWindowAttributes attribs;
219 ioctl(f,MGA_VID_ON,0); 221 ioctl(f,MGA_VID_ON,0);
220 222
221 return 0; 223 return 0;
222 } 224 }
223 225
224 static const vo_info_t* get_info( void ){ return &vo_info; }
225
226 static void uninit(void){ 226 static void uninit(void){
227 mp_msg(MSGT_VO,MSGL_V,"vo: uninit!\n"); 227 mp_msg(MSGT_VO,MSGL_V,"vo: uninit!\n");
228 mga_uninit(); 228 mga_uninit();
229 if(!inited) return; // no window? 229 if(!inited) return; // no window?
230 inited=0; 230 inited=0;