From ac282872e737fa316200ff047ca1456248bf4c99 Mon Sep 17 00:00:00 2001 From: hcg Date: Fri, 18 Jan 2013 13:20:39 +0000 Subject: [PATCH] [packages] gstreamer: Enable debugging and add gst_log2_debug symbol git-svn-id: svn://svn.openwrt.org/openwrt/packages@35223 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- multimedia/gstreamer/Makefile | 4 -- .../004-add_gst_debug_log2_debug_symbol.patch | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 multimedia/gstreamer/patches/004-add_gst_debug_log2_debug_symbol.patch diff --git a/multimedia/gstreamer/Makefile b/multimedia/gstreamer/Makefile index 6622c354f..a5e896fed 100644 --- a/multimedia/gstreamer/Makefile +++ b/multimedia/gstreamer/Makefile @@ -82,13 +82,9 @@ endef GST_VERSION:=0.10 CONFIGURE_ARGS += \ - --disable-debug \ --disable-examples \ --disable-tests \ --disable-valgrind \ - \ - --disable-gst-debug \ - \ --without-libiconv-prefix \ --without-libintl-prefix \ --without-x \ diff --git a/multimedia/gstreamer/patches/004-add_gst_debug_log2_debug_symbol.patch b/multimedia/gstreamer/patches/004-add_gst_debug_log2_debug_symbol.patch new file mode 100644 index 000000000..bc2e9e229 --- /dev/null +++ b/multimedia/gstreamer/patches/004-add_gst_debug_log2_debug_symbol.patch @@ -0,0 +1,43 @@ +--- gstreamer-0.10.36/gst/gstinfo.c 2011-12-30 02:14:34.000000000 +0100 ++++ gstreamer-0.10.36.modified/gst/gstinfo.c 2013-01-03 14:01:37.000000000 +0100 +@@ -462,6 +462,39 @@ + va_end (var_args); + } + ++typedef struct { ++ const gchar *file; ++ const gchar *function; ++ const gint line; ++} GstDebugTraceLocation; ++ ++ ++/** ++ * gst_debug_log2: ++ * category: category to log ++ * level: level of the message is in ++ * location: the file, function name, and line number of the location that ++ * emitted the message ++ * object: the object this message relates to or NULL if none ++ * format: a printf style format string ++ * ...: 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 * +