commit b2dce9463216e55484918caa553604b44dfd3f11 Author: reimar Date: Fri Apr 15 20:41:40 2011 +0000 Avoid crash when pausing an audio-only file. git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@33268 b3059339-0415-0410-9bf9-f77b7e298cf2 diff --git a/mplayer.c b/mplayer.c index 22d3baf..c946b4a 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2539,7 +2539,8 @@ static void pause_loop(void) } } #endif - handle_udp_master(mpctx->sh_video->pts); + if (mpctx->sh_video) + handle_udp_master(mpctx->sh_video->pts); usec_sleep(20000); } if (cmd && cmd->id == MP_CMD_PAUSE) {