cmd can be NULL when leaving the paused mode and using the GUI

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13769 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2004-10-26 09:32:51 +00:00
parent e51a820025
commit 86b8e9abd7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}