changeset 5853:863cb373cefd

osd crash fixed
author arpi
date Fri, 26 Apr 2002 23:18:06 +0000
parents 0e831f5eb96f
children 3a961eaf45b9
files libmpcodecs/vf_vo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_vo.c	Fri Apr 26 21:23:09 2002 +0000
+++ b/libmpcodecs/vf_vo.c	Fri Apr 26 23:18:06 2002 +0000
@@ -44,6 +44,7 @@
         int request, void* data){
     switch(request){
     case VFCTRL_DRAW_OSD:
+	if(!vo_config_count) CONTROL_FALSE; // vo not configured?
 	video_out->draw_osd();
 	return CONTROL_TRUE;
     }