mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
gst/audioresample/: Convert to using gst debugging
Original commit message from CVS: * gst/audioresample/Makefile.am: * gst/audioresample/debug.h: * gst/audioresample/gstaudioresample.c: * gst/audioresample/resample.c: Convert to using gst debugging
This commit is contained in:
parent
33adbc8b23
commit
4de70b1520
5 changed files with 19 additions and 9 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit cd4da6a319d9f92d28f7b8a3b412577e6de50b64
|
||||
Subproject commit 793f85c1c14de9c1053b8db7df44bfbba1f0a156
|
|
@ -7,7 +7,6 @@ resample_SOURCES = \
|
|||
resample_ref.c \
|
||||
resample_chunk.c \
|
||||
resample.h \
|
||||
debug.c \
|
||||
buffer.c
|
||||
|
||||
noinst_HEADERS = \
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#ifndef __RESAMPLE_DEBUG_H__
|
||||
#define __RESAMPLE_DEBUG_H__
|
||||
|
||||
#if 0
|
||||
enum
|
||||
{
|
||||
RESAMPLE_LEVEL_NONE = 0,
|
||||
|
@ -30,5 +31,21 @@ void resample_debug_log (int level, const char *file, const char *function,
|
|||
int line, const char *format, ...);
|
||||
void resample_debug_set_level (int level);
|
||||
int resample_debug_get_level (void);
|
||||
#else
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (audioresample_debug);
|
||||
#define GST_CAT_DEFAULT audioresample_debug
|
||||
|
||||
#define RESAMPLE_ERROR(...) GST_ERROR(__VA_ARGS__)
|
||||
#define RESAMPLE_WARNING(...) GST_WARNING(__VA_ARGS__)
|
||||
#define RESAMPLE_INFO(...) GST_INFO(__VA_ARGS__)
|
||||
#define RESAMPLE_DEBUG(...) GST_DEBUG(__VA_ARGS__)
|
||||
#define RESAMPLE_LOG(...) GST_LOG(__VA_ARGS__)
|
||||
|
||||
#define resample_debug_set_level(x) do { } while (0)
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <gst/audio/audio.h>
|
||||
#include <gst/base/gstbasetransform.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (audioresample_debug);
|
||||
GST_DEBUG_CATEGORY (audioresample_debug);
|
||||
#define GST_CAT_DEFAULT audioresample_debug
|
||||
|
||||
/* elementfactory information */
|
||||
|
|
|
@ -37,21 +37,15 @@ void resample_scale_ref (ResampleState * r);
|
|||
void resample_scale_functable (ResampleState * r);
|
||||
|
||||
|
||||
|
||||
void
|
||||
resample_init (void)
|
||||
{
|
||||
static int inited = 0;
|
||||
const char *debug;
|
||||
|
||||
if (!inited) {
|
||||
oil_init ();
|
||||
inited = 1;
|
||||
}
|
||||
|
||||
if ((debug = g_getenv ("RESAMPLE_DEBUG"))) {
|
||||
resample_debug_set_level (atoi (debug));
|
||||
}
|
||||
}
|
||||
|
||||
ResampleState *
|
||||
|
|
Loading…
Reference in a new issue