From 978dd0fc27b1954db1f03c3605cbc1e23cd0edb8 Mon Sep 17 00:00:00 2001 From: albeu Date: Wed, 13 Aug 2003 17:03:36 +0000 Subject: [PATCH] "when I run "mplayer -slave " then, while playing, I send the following command "loadfile " I get a crash ... " Report and patch by ROSEN Jeremy git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10597 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index eee774a3fe..230da6520a 100644 --- a/mplayer.c +++ b/mplayer.c @@ -3354,7 +3354,7 @@ if(rel_seek_secs || abs_seek_pos){ //================= 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;