# HG changeset patch # User rtogni # Date 1162747888 0 # Node ID d46e820e31df284cc04d24e5b2a96e74a0615868 # Parent 7088929a2cb895138a5d744e2f1bdde59882fc20 printf ->mp_msg diff -r 7088929a2cb8 -r d46e820e31df stream/realrtsp/asmrp.c --- 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; }