[Mplayer-cvslog] CVS: main parser-mecmd.c,1.4,1.5 parser-mpcmd.c,1.8,1.9
Alban Bedel CVS
albeu at mplayerhq.hu
Wed Apr 2 18:13:19 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv28899
Modified Files:
parser-mecmd.c parser-mpcmd.c
Log Message:
Exit when the option parser return M_OPT_EXIT
Index: parser-mecmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mecmd.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- parser-mecmd.c 30 Mar 2003 17:08:35 -0000 1.4
+++ parser-mecmd.c 2 Apr 2003 16:13:16 -0000 1.5
@@ -110,6 +110,8 @@
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;
}
}
Index: parser-mpcmd.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-mpcmd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- parser-mpcmd.c 30 Mar 2003 17:08:35 -0000 1.8
+++ parser-mpcmd.c 2 Apr 2003 16:13:16 -0000 1.9
@@ -186,8 +186,11 @@
}
}
- if (tmp < 0)
+ if (tmp < 0) {
+ if (tmp == M_OPT_EXIT)
+ exit(0);
goto err_out;
+ }
i += tmp;
}
else /* filename */
More information about the MPlayer-cvslog
mailing list