From f8f2f5a58de2017fc13549be4d88318490d43f48 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 3 Aug 2004 10:24:39 +0000 Subject: [PATCH] gst/parse/parse.l: fix for G_DISABLE_ASSERT Original commit message from CVS: * gst/parse/parse.l: fix for G_DISABLE_ASSERT --- ChangeLog | 5 +++++ gst/parse/parse.l | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4c9cd6d4d6..0fd31d34bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-03 Benjamin Otte + + * gst/parse/parse.l: + fix for G_DISABLE_ASSERT + 2004-08-03 Wim Taymans * gst/gstbin.c: (gst_bin_get_type), diff --git a/gst/parse/parse.l b/gst/parse/parse.l index 2411709292..46ec251835 100644 --- a/gst/parse/parse.l +++ b/gst/parse/parse.l @@ -110,7 +110,8 @@ _link ("!"[[:space:]]*{_caps}([[:space:]]*(";"[[:space:]]*{_caps})*[[:space:]]*) while (g_ascii_isspace (*c)) c++; c = lvalp->s = gst_parse_strdup (c); while (*c) c++; - g_assert (*--c == '!'); + if (*--c != '!') + g_assert_not_reached (); while (g_ascii_isspace (*--c)); *++c = '\0'; } else {