ehh, return error if cannot open display

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4828 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-02-23 23:14:29 +00:00
parent 70109de178
commit d840ddb7c5
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
#ifdef HAVE_NEW_GUI
if ( vo_window == None )
#endif
if( !vo_init() ) return 0; // Can't open X11
if( !vo_init() ) return -1; // Can't open X11
if (!title)