[MPlayer-cvslog] r33268 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Fri Apr 15 22:41:41 CEST 2011


Author: reimar
Date: Fri Apr 15 22:41:40 2011
New Revision: 33268

Log:
Avoid crash when pausing an audio-only file.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Fri Apr 15 16:34:17 2011	(r33267)
+++ trunk/mplayer.c	Fri Apr 15 22:41:40 2011	(r33268)
@@ -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) {


More information about the MPlayer-cvslog mailing list