1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

10L bugs founds by Jindrich Makovicka <makovicki at KMLinux dot fjfi dot cvuti dot cz>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6758 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-07-20 14:26:38 +00:00
parent 3f558f2e9b
commit d80e0a04b8
2 changed files with 3 additions and 2 deletions

View File

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

View File

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