changeset 10596:14695e4f37fc

"when I run "mplayer -slave <audiofile> " then, while playing, I send the following command "loadfile <anyfile>" I get a crash ... " Report and patch by ROSEN Jeremy
author albeu
date Wed, 13 Aug 2003 17:03:36 +0000
parents 522afd56703c
children 697688503349
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Aug 13 16:45:02 2003 +0000
+++ b/mplayer.c	Wed Aug 13 17:03:36 2003 +0000
@@ -3354,7 +3354,7 @@
 
 //================= Update OSD ====================
 #ifdef USE_OSD
-  if(osd_level>=1){
+  if(osd_level>=1 && sh_video){
       int pts=sh_video->pts;
       char osd_text_tmp[64];
       if(pts==osd_last_pts-1) ++pts; else osd_last_pts=pts;