# HG changeset patch # User albeu # Date 1060794216 0 # Node ID 14695e4f37fc0a3791916e8a641457adc7285b60 # Parent 522afd56703c0316401d18efec49daa2aca2a661 "when I run "mplayer -slave " then, while playing, I send the following command "loadfile " I get a crash ... " Report and patch by ROSEN Jeremy diff -r 522afd56703c -r 14695e4f37fc mplayer.c --- 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;