view libvo/x11_common.h @ 1362:11673118f37f

Fix segfault in DShow video decoder. Using directshow, the sh_video->out_out_buffer is NULL on the first few decoded frames, and is initialized in loader/DirectShow/outputpin.cpp, method COutputPin::Receive(), while the video is already running. Do not try to display a frame while sh_video->out_out_buffer is still NULL. Such a test was present in the previous to last revision of this file, but was lost in the last revision.
author jkeil
date Fri, 20 Jul 2001 11:35:47 +0000
parents 4c7b219e126c
children 5e4214a7540e
line wrap: on
line source


#ifdef X11_FULLSCREEN

extern int vo_depthonscreen;
extern int vo_screenwidth;
extern int vo_screenheight;
extern int vo_dwidth;
extern int vo_dheight;

extern char *mDisplayName;
extern Display *mDisplay;
extern Window *mRootWin;
extern int mScreen;
extern int mLocalDisplay;

int vo_init( void );
int vo_hidecursor ( Display* , Window );
void vo_x11_decoration( Display * vo_Display,Window w,int d );
void vo_x11_classhint( Display * display,Window window,char *name );
int vo_x11_check_events(Display *mydisplay);
#endif

#ifdef HAVE_GUI
 extern Window    vo_window;
 extern Display * vo_display;
 extern GC        vo_gc;
 extern int       vo_xeventhandling;
 extern int       vo_expose;
 extern int       vo_resize;

 extern void vo_setwindow( Window w,GC g );
#endif

void saver_off( Display * );
void saver_on( Display * );