summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 397870a705..733f637ec7 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2506,7 +2506,7 @@ if(auto_quality>0){
#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);
}