mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
parse: don't format the string twice
We were formatting the string once and then passing the string as a format string to the log functions.
This commit is contained in:
parent
fcc5d783df
commit
e025e328fd
1 changed files with 2 additions and 6 deletions
|
@ -181,18 +181,14 @@ SET_ERROR (GError **error, gint type, const char *format, ...)
|
||||||
/* # define YYFPRINTF(a, ...) GST_CAT_DEBUG (GST_CAT_PIPELINE, __VA_ARGS__) */
|
/* # define YYFPRINTF(a, ...) GST_CAT_DEBUG (GST_CAT_PIPELINE, __VA_ARGS__) */
|
||||||
# define YYFPRINTF(a, ...) \
|
# define YYFPRINTF(a, ...) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
gchar *temp = g_strdup_printf (__VA_ARGS__); \
|
GST_CAT_LOG (GST_CAT_PIPELINE, __VA_ARGS__); \
|
||||||
GST_CAT_LOG (GST_CAT_PIPELINE, temp); \
|
|
||||||
g_free (temp); \
|
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
# elif defined(G_HAVE_GNUC_VARARGS)
|
# elif defined(G_HAVE_GNUC_VARARGS)
|
||||||
|
|
||||||
# define YYFPRINTF(a, args...) \
|
# define YYFPRINTF(a, args...) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
gchar *temp = g_strdup_printf ( args ); \
|
GST_CAT_LOG (GST_CAT_PIPELINE, args); \
|
||||||
GST_CAT_LOG (GST_CAT_PIPELINE, temp); \
|
|
||||||
g_free (temp); \
|
|
||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Reference in a new issue