summaryrefslogtreecommitdiffstats
path: root/stream/realrtsp
diff options
context:
space:
mode:
authorrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-05 17:08:36 +0000
committerrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-05 17:08:36 +0000
commit506b4783ec26e795349ae1e10273f3810e86e0b2 (patch)
tree4e0a98b9e6a5a6c8f1582a739c1036305f2c9c7f /stream/realrtsp
parent09ebe87f57ffaf6e2c684100ddb6b57dae727acd (diff)
downloadmpv-506b4783ec26e795349ae1e10273f3810e86e0b2.tar.bz2
mpv-506b4783ec26e795349ae1e10273f3810e86e0b2.tar.xz
Do not use abort()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20713 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/realrtsp')
-rw-r--r--stream/realrtsp/asmrp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/stream/realrtsp/asmrp.c b/stream/realrtsp/asmrp.c
index 05953daeb8..22828e274f 100644
--- a/stream/realrtsp/asmrp.c
+++ b/stream/realrtsp/asmrp.c
@@ -418,7 +418,7 @@ static int asmrp_operand (asmrp_t *p) {
if (p->sym != ASMRP_SYM_ID) {
printf ("error: identifier expected.\n");
- abort();
+ break;
}
i = asmrp_find_id (p, p->str);
@@ -443,7 +443,7 @@ static int asmrp_operand (asmrp_t *p) {
if (p->sym != ASMRP_SYM_RPAREN) {
printf ("error: ) expected.\n");
- abort();
+ break;
}
asmrp_get_sym (p);
@@ -451,7 +451,6 @@ static int asmrp_operand (asmrp_t *p) {
default:
printf ("syntax error, $ number or ( expected\n");
- abort();
}
#ifdef LOG
@@ -461,6 +460,7 @@ static int asmrp_operand (asmrp_t *p) {
return ret;
}
+
static int asmrp_comp_expression (asmrp_t *p) {
int a;
@@ -559,20 +559,20 @@ static void asmrp_assignment (asmrp_t *p) {
if (p->sym != ASMRP_SYM_ID) {
printf ("error: identifier expected\n");
- abort ();
+ return;
}
asmrp_get_sym (p);
if (p->sym != ASMRP_SYM_EQUALS) {
printf ("error: = expected\n");
- abort ();
+ 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");
- abort ();
+ return;
}
asmrp_get_sym (p);
@@ -620,7 +620,7 @@ static int asmrp_rule (asmrp_t *p) {
if (p->sym != ASMRP_SYM_SEMICOLON) {
printf ("semicolon expected.\n");
- abort ();
+ return ret;
}
asmrp_get_sym (p);