changeset 33181:ddbd34d6392d

Avoid crash when pausing an audio-only file.
author reimar
date Fri, 15 Apr 2011 20:41:40 +0000
parents 422e5d306d44
children 92f963c8c610
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Apr 15 14:34:17 2011 +0000
+++ b/mplayer.c	Fri Apr 15 20:41:40 2011 +0000
@@ -2539,7 +2539,8 @@
             }
         }
 #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) {