ext/wavpack/: Use a general wavpack debug category for common code.

Original commit message from CVS:
* ext/wavpack/gstwavpack.c: (plugin_init):
* ext/wavpack/gstwavpackcommon.c:
Use a general wavpack debug category for common code.
* ext/wavpack/gstwavpackstreamreader.c:
(gst_wavpack_stream_reader_set_pos_abs),
(gst_wavpack_stream_reader_set_pos_rel),
(gst_wavpack_stream_reader_write_bytes):
Use the general wavpack debug category here too and add debug
output to the functions that should not be called at all by
the wavpack library.
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_plugin_init):
* ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_plugin_init):
* ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_plugin_init):
Change debugging category names to conform to the conventions.
This commit is contained in:
Sebastian Dröge 2007-03-07 12:07:07 +00:00
parent b4447e0c7a
commit 49e29a2716
7 changed files with 36 additions and 6 deletions

View file

@ -1,3 +1,20 @@
2007-03-07 Sebastian Dröge <slomo@circular-chaos.org>
* ext/wavpack/gstwavpack.c: (plugin_init):
* ext/wavpack/gstwavpackcommon.c:
Use a general wavpack debug category for common code.
* ext/wavpack/gstwavpackstreamreader.c:
(gst_wavpack_stream_reader_set_pos_abs),
(gst_wavpack_stream_reader_set_pos_rel),
(gst_wavpack_stream_reader_write_bytes):
Use the general wavpack debug category here too and add debug
output to the functions that should not be called at all by
the wavpack library.
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_plugin_init):
* ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_plugin_init):
* ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_plugin_init):
Change debugging category names to conform to the conventions.
2007-03-07 Edward Hervey <edward@fluendo.com>
* gst/qtdemux/qtdemux.c:

View file

@ -27,9 +27,13 @@
#include "gstwavpackdec.h"
#include "gstwavpackenc.h"
/* debug category for common code */
GST_DEBUG_CATEGORY (wavpack_debug);
static gboolean
plugin_init (GstPlugin * plugin)
{
GST_DEBUG_CATEGORY_INIT (wavpack_debug, "wavpack", 0, "Wavpack elements");
return (gst_wavpack_parse_plugin_init (plugin)
&& gst_wavpack_dec_plugin_init (plugin)
&& gst_wavpack_enc_plugin_init (plugin));

View file

@ -28,6 +28,9 @@
#include "gstwavpackcommon.h"
#include <string.h>
GST_DEBUG_CATEGORY_EXTERN (wavpack_debug);
#define GST_CAT_DEFAULT wavpack_debug
gboolean
gst_wavpack_read_header (WavpackHeader * header, guint8 * buf)
{

View file

@ -494,7 +494,7 @@ gst_wavpack_dec_plugin_init (GstPlugin * plugin)
if (!gst_element_register (plugin, "wavpackdec",
GST_RANK_PRIMARY, GST_TYPE_WAVPACK_DEC))
return FALSE;
GST_DEBUG_CATEGORY_INIT (gst_wavpack_dec_debug, "wavpackdec", 0,
"wavpack decoder");
GST_DEBUG_CATEGORY_INIT (gst_wavpack_dec_debug, "wavpack_dec", 0,
"Wavpack decoder");
return TRUE;
}

View file

@ -978,8 +978,8 @@ gst_wavpack_enc_plugin_init (GstPlugin * plugin)
GST_RANK_NONE, GST_TYPE_WAVPACK_ENC))
return FALSE;
GST_DEBUG_CATEGORY_INIT (gst_wavpack_enc_debug, "wavpackenc", 0,
"wavpack encoder");
GST_DEBUG_CATEGORY_INIT (gst_wavpack_enc_debug, "wavpack_enc", 0,
"Wavpack encoder");
return TRUE;
}

View file

@ -1176,8 +1176,8 @@ gst_wavpack_parse_plugin_init (GstPlugin * plugin)
return FALSE;
}
GST_DEBUG_CATEGORY_INIT (gst_wavpack_parse_debug, "wavpackparse", 0,
"wavpack file parser");
GST_DEBUG_CATEGORY_INIT (gst_wavpack_parse_debug, "wavpack_parse", 0,
"Wavpack file parser");
return TRUE;
}

View file

@ -25,6 +25,9 @@
#include "gstwavpackstreamreader.h"
GST_DEBUG_CATEGORY_EXTERN (wavpack_debug);
#define GST_CAT_DEFAULT wavpack_debug
static int32_t
gst_wavpack_stream_reader_read_bytes (void *id, void *data, int32_t bcount)
{
@ -50,12 +53,14 @@ gst_wavpack_stream_reader_get_pos (void *id)
static int
gst_wavpack_stream_reader_set_pos_abs (void *id, uint32_t pos)
{
GST_DEBUG ("should not be called");
return -1;
}
static int
gst_wavpack_stream_reader_set_pos_rel (void *id, int32_t delta, int mode)
{
GST_DEBUG ("should not be called");
return -1;
}
@ -85,6 +90,7 @@ gst_wavpack_stream_reader_can_seek (void *id)
static int32_t
gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
{
GST_DEBUG ("should not be called");
return 0;
}