[MPlayer-cvslog] r20715 - trunk/stream/realrtsp/asmrp.c

rtogni subversion at mplayerhq.hu
Sun Nov 5 18:31:31 CET 2006


Author: rtogni
Date: Sun Nov  5 18:31:28 2006
New Revision: 20715

Modified:
   trunk/stream/realrtsp/asmrp.c

Log:
printf ->mp_msg


Modified: trunk/stream/realrtsp/asmrp.c
==============================================================================
--- trunk/stream/realrtsp/asmrp.c	(original)
+++ trunk/stream/realrtsp/asmrp.c	Sun Nov  5 18:31:28 2006
@@ -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;
   }
 



More information about the MPlayer-cvslog mailing list