From d80e0a04b8ca6da02b51b420bb081a4a58949f73 Mon Sep 17 00:00:00 2001 From: albeu Date: Sat, 20 Jul 2002 14:26:38 +0000 Subject: [PATCH] 10L bugs founds by Jindrich Makovicka git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6758 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 3 ++- libvo/vo_aa.c | 2 +- 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;