changeset 5927:cffef9cc01bb

catching vo/vf init failure
author arpi
date Wed, 01 May 2002 22:37:59 +0000
parents 4a198a1bfa53
children 48e91dc9534b
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed May 01 20:25:04 2002 +0000
+++ b/mplayer.c	Wed May 01 22:37:59 2002 +0000
@@ -1532,6 +1532,11 @@
 
     mp_dbg(MSGT_AVSYNC,MSGL_DBG2,"*** ftime=%5.3f ***\n",frame_time);
 
+    if(sh_video->vf_inited<0){
+	mp_msg(MSGT_CPLAYER,MSGL_FATAL,"\nFATAL: Couldn't initialize video filters (-vop) or video output (-vo) !\n");
+	eof=1; goto goto_next_file;
+    }
+
 // ==========================================================================
     
 //    current_module="draw_osd";