packages/multimedia/gstreamer/patches/004-add_gst_debug_log2_debug_symbol.patch
luka aeed132f50 [packages] gstreamer: update grammar.y to build with bison 3
In gstreamer's gst/parse/grammar.y, YYLEX_PARAM is no longer supported in bison
3. Replace YYLEX_PARAM with %lex-param.

Signed-off-by John Vogel <jvogel4@stny.rr.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39182 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-31 00:44:18 +00:00

43 lines
1.2 KiB
Diff

--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -462,6 +462,39 @@ gst_debug_log (GstDebugCategory * catego
va_end (var_args);
}
+typedef struct {
+ const gchar *file;
+ const gchar *function;
+ const gint line;
+} GstDebugTraceLocation;
+
+
+/**
+ * gst_debug_log2:
+ * <at> category: category to log
+ * <at> level: level of the message is in
+ * <at> location: the file, function name, and line number of the location that
+ * emitted the message
+ * <at> object: the object this message relates to or NULL if none
+ * <at> format: a printf style format string
+ * <at> ...: optional arguments for the format
+ *
+ * Logs the given message using the currently registered debugging handlers.
+ */
+void
+gst_debug_log2 (GstDebugCategory * category, GstDebugLevel level,
+ const GstDebugTraceLocation * location,
+ GObject * object, const gchar * format, ...)
+{
+#if 0
+ va_list var_args;
+
+ va_start (var_args, format);
+ gst_debug_log_valist2 (category, level, location, object, format, var_args);
+ va_end (var_args);
+#endif
+}
+
#ifdef _MSC_VER
/* based on g_basename(), which we can't use because it was deprecated */
static inline const gchar *