Mercurial > mplayer.hg
changeset 20699:d46e820e31df
printf ->mp_msg
author | rtogni |
---|---|
date | Sun, 05 Nov 2006 17:31:28 +0000 |
parents | 7088929a2cb8 |
children | 45086015c50d |
files | stream/realrtsp/asmrp.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/realrtsp/asmrp.c Sun Nov 05 17:26:55 2006 +0000 +++ b/stream/realrtsp/asmrp.c Sun Nov 05 17:31:28 2006 +0000 @@ -417,13 +417,13 @@ asmrp_get_sym (p); if (p->sym != ASMRP_SYM_ID) { - printf ("error: identifier expected.\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: identifier expected.\n"); break; } i = asmrp_find_id (p, p->str); if (i<0) { - printf ("error: unknown identifier %s\n", p->str); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: unknown identifier %s\n", p->str); } ret = p->sym_tab[i].v; @@ -442,7 +442,7 @@ ret = asmrp_condition (p); if (p->sym != ASMRP_SYM_RPAREN) { - printf ("error: ) expected.\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: ) expected.\n"); break; } @@ -450,7 +450,7 @@ break; default: - printf ("syntax error, $ number or ( expected\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "syntax error, $ number or ( expected\n"); } #ifdef LOG @@ -558,20 +558,20 @@ } if (p->sym != ASMRP_SYM_ID) { - printf ("error: identifier expected\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: identifier expected\n"); return; } asmrp_get_sym (p); if (p->sym != ASMRP_SYM_EQUALS) { - printf ("error: = expected\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: = expected\n"); return; } asmrp_get_sym (p); if ( (p->sym != ASMRP_SYM_NUM) && (p->sym != ASMRP_SYM_STRING) && (p->sym != ASMRP_SYM_ID)) { - printf ("error: number or string expected\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "error: number or string expected\n"); return; } asmrp_get_sym (p); @@ -619,7 +619,7 @@ #endif if (p->sym != ASMRP_SYM_SEMICOLON) { - printf ("semicolon expected.\n"); + mp_msg(MSGT_STREAM, MSGL_ERR, "semicolon expected.\n"); return ret; }