Skip to content

Commit

Permalink
Exit when the option parser return M_OPT_EXIT
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9793 b3059339-0415-0410-9bf9-f77b7e298cf2
  • Loading branch information
albeu committed Apr 2, 2003
1 parent 9b17043 commit c193b91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions parser-mecmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ m_config_parse_me_command_line(m_config_t *config, int argc, char **argv)
no++;
} else {
// mp_msg(MSGT_CFGPARSER, MSGL_ERR, "m_config_set_option() failed (%d)\n",tmp);
if(tmp == M_OPT_EXIT)
exit(0);
goto err_out;
}
}
Expand Down
5 changes: 4 additions & 1 deletion parser-mpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv)
}
}

if (tmp < 0)
if (tmp < 0) {
if (tmp == M_OPT_EXIT)
exit(0);
goto err_out;
}
i += tmp;
}
else /* filename */
Expand Down

0 comments on commit c193b91

Please sign in to comment.