[packages] gstreamer: Enable debugging and add gst_log2_debug symbol
[packages.git] / multimedia / gstreamer / patches / 004-add_gst_debug_log2_debug_symbol.patch
1 --- gstreamer-0.10.36/gst/gstinfo.c 2011-12-30 02:14:34.000000000 +0100
2 +++ gstreamer-0.10.36.modified/gst/gstinfo.c    2013-01-03 14:01:37.000000000 +0100
3 @@ -462,6 +462,39 @@
4    va_end (var_args);
5  }
6  
7 +typedef struct {
8 +  const gchar *file;
9 +  const gchar *function;
10 +  const gint   line;
11 +} GstDebugTraceLocation;
12 +
13 +
14 +/**
15 + * gst_debug_log2:
16 + *  <at> category: category to log
17 + *  <at> level: level of the message is in
18 + *  <at> location: the file, function name, and line number of the location that
19 + *    emitted the message
20 + *  <at> object: the object this message relates to or NULL if none
21 + *  <at> format: a printf style format string
22 + *  <at> ...: optional arguments for the format
23 + *
24 + * Logs the given message using the currently registered debugging handlers.
25 + */
26 +void
27 +gst_debug_log2 (GstDebugCategory * category, GstDebugLevel level,
28 +    const GstDebugTraceLocation * location,
29 +    GObject * object, const gchar * format, ...)
30 +{
31 +#if 0
32 +  va_list var_args;
33 +
34 +  va_start (var_args, format);
35 +  gst_debug_log_valist2 (category, level, location, object, format, var_args);
36 +  va_end (var_args);
37 +#endif
38 +}
39 +
40  #ifdef _MSC_VER
41  /* based on g_basename(), which we can't use because it was deprecated */
42  static inline const gchar *
43