changeset 13768:955ad54a9aab

cmd can be NULL when leaving the paused mode and using the GUI
author reimar
date Tue, 26 Oct 2004 09:32:51 +0000
parents b361eb0cc549
children 9e9d2fdd2632
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Tue Oct 26 06:36:38 2004 +0000
+++ b/mplayer.c	Tue Oct 26 09:32:51 2004 +0000
@@ -2506,7 +2506,7 @@
 #endif
              usec_sleep(20000);
          }
-      if (cmd->id == MP_CMD_PAUSE) {
+      if (cmd && cmd->id == MP_CMD_PAUSE) {
       cmd = mp_input_get_cmd(0,1,0);
       mp_cmd_free(cmd);
       }