mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
gst/parse/grammar.y: use GST_ERROR instead of g_warning, and always throw a GST_ERROR
Original commit message from CVS: * gst/parse/grammar.y: use GST_ERROR instead of g_warning, and always throw a GST_ERROR
This commit is contained in:
parent
83c7c626f0
commit
2f043c0996
2 changed files with 14 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-05-04 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* gst/parse/grammar.y:
|
||||
use GST_ERROR instead of g_warning, and always throw a GST_ERROR
|
||||
|
||||
2004-05-04 Benjamin Otte <otte@gnome.org>
|
||||
|
||||
* testsuite/caps/renegotiate.c: (main):
|
||||
|
|
|
@ -95,13 +95,10 @@ typedef struct {
|
|||
|
||||
#ifdef G_HAVE_ISO_VARARGS
|
||||
#define SET_ERROR(error, type, ...) G_STMT_START{ \
|
||||
if (error) { \
|
||||
if (*(error)) { \
|
||||
g_warning (__VA_ARGS__); \
|
||||
} else { \
|
||||
GST_CAT_ERROR (GST_CAT_PIPELINE, __VA_ARGS__); \
|
||||
if ((error) && !*(error)) { \
|
||||
g_set_error ((error), GST_PARSE_ERROR, (type), __VA_ARGS__); \
|
||||
} \
|
||||
} \
|
||||
}G_STMT_END
|
||||
#define ERROR(type, ...) SET_ERROR (((graph_t *) graph)->error, (type), __VA_ARGS__ )
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
@ -120,13 +117,10 @@ typedef struct {
|
|||
#elif defined(G_HAVE_GNUC_VARARGS)
|
||||
|
||||
#define SET_ERROR(error, type, args...) G_STMT_START{ \
|
||||
if (error) { \
|
||||
if (*(error)) { \
|
||||
g_warning ( args ); \
|
||||
} else { \
|
||||
GST_CAT_ERROR (GST_CAT_PIPELINE, args ); \
|
||||
if ((error) && !*(error)) { \
|
||||
g_set_error ((error), GST_PARSE_ERROR, (type), args ); \
|
||||
} \
|
||||
} \
|
||||
}G_STMT_END
|
||||
#define ERROR(type, args...) SET_ERROR (((graph_t *) graph)->error, (type) , args )
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
@ -145,13 +139,10 @@ typedef struct {
|
|||
#else
|
||||
|
||||
#define SET_ERROR(error, type, ...) G_STMT_START{ \
|
||||
if (error) { \
|
||||
if (*(error)) { \
|
||||
g_warning ("error while parsing"); \
|
||||
} else { \
|
||||
GST_CAT_ERROR (GST_CAT_PIPELINE, "error while parsing" ); \
|
||||
if ((error) && !*(error)) { \
|
||||
g_set_error ((error), GST_PARSE_ERROR, (type), "error while parsing"); \
|
||||
} \
|
||||
} \
|
||||
}G_STMT_END
|
||||
#define ERROR(type, ...) SET_ERROR (((graph_t *) graph)->error, (type), "error while parsing")
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
|
Loading…
Reference in a new issue