changeset 4358:b313f88cd0dc

vo's preinit support
author nick
date Sat, 26 Jan 2002 18:27:09 +0000
parents 511fa4be8bfc
children 266ebffd8fc9
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Jan 26 16:51:26 2002 +0000
+++ b/mplayer.c	Sat Jan 26 18:27:09 2002 +0000
@@ -790,7 +790,11 @@
     mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_InvalidVOdriver,video_driver?video_driver:"?");
     exit_player(MSGTR_Exit_error);
   }
-
+  if((i=video_out->preinit(vo_subdevice))!=0)
+  {
+    mp_msg(MSGT_CPLAYER,MSGL_FATAL,"error on vo preinit = %u\n",i);
+    exit_player(MSGTR_Exit_error);
+  }
 // check audio_out driver name:
     if (audio_driver)
 	if ((i = strcspn(audio_driver, ":")) > 0)