summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/input.c3
-rw-r--r--libvo/vo_aa.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c
index 7745eaa1cf..8267227a63 100644
--- a/input/input.c
+++ b/input/input.c
@@ -446,7 +446,8 @@ mp_input_parse_cmd(char* str) {
ptr = strchr(ptr,' ');
if(!ptr) break;
while(ptr[0] == ' ' || ptr[0] == '\t') ptr++;
- if(ptr[0] == '\0') break;
+ if(ptr[0] == '\0') break;
+ cmd->args[i].type = cmd_def->args[i].type;
switch(cmd_def->args[i].type) {
case MP_CMD_ARG_INT:
errno = 0;
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index 51a64b4ef9..06d25f55e1 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -200,7 +200,7 @@ printosdtext()
/*
* places the mplayer status osd
*/
- if (vo_osd_text) {
+ if (vo_osd_text && vo_osd_text[0] != 0) {
int len;
if(vo_osd_text[0] < 32) {
len = strlen(__sub_osd_names_short[vo_osd_text[0]]) + strlen(vo_osd_text+1) + 2;