mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
b4447e0c7a
commit
49e29a2716
7 changed files with 36 additions and 6 deletions
17
ChangeLog
17
ChangeLog
|
@ -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>
|
2007-03-07 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/qtdemux/qtdemux.c:
|
* gst/qtdemux/qtdemux.c:
|
||||||
|
|
|
@ -27,9 +27,13 @@
|
||||||
#include "gstwavpackdec.h"
|
#include "gstwavpackdec.h"
|
||||||
#include "gstwavpackenc.h"
|
#include "gstwavpackenc.h"
|
||||||
|
|
||||||
|
/* debug category for common code */
|
||||||
|
GST_DEBUG_CATEGORY (wavpack_debug);
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG_CATEGORY_INIT (wavpack_debug, "wavpack", 0, "Wavpack elements");
|
||||||
return (gst_wavpack_parse_plugin_init (plugin)
|
return (gst_wavpack_parse_plugin_init (plugin)
|
||||||
&& gst_wavpack_dec_plugin_init (plugin)
|
&& gst_wavpack_dec_plugin_init (plugin)
|
||||||
&& gst_wavpack_enc_plugin_init (plugin));
|
&& gst_wavpack_enc_plugin_init (plugin));
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
#include "gstwavpackcommon.h"
|
#include "gstwavpackcommon.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (wavpack_debug);
|
||||||
|
#define GST_CAT_DEFAULT wavpack_debug
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gst_wavpack_read_header (WavpackHeader * header, guint8 * buf)
|
gst_wavpack_read_header (WavpackHeader * header, guint8 * buf)
|
||||||
{
|
{
|
||||||
|
|
|
@ -494,7 +494,7 @@ gst_wavpack_dec_plugin_init (GstPlugin * plugin)
|
||||||
if (!gst_element_register (plugin, "wavpackdec",
|
if (!gst_element_register (plugin, "wavpackdec",
|
||||||
GST_RANK_PRIMARY, GST_TYPE_WAVPACK_DEC))
|
GST_RANK_PRIMARY, GST_TYPE_WAVPACK_DEC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_wavpack_dec_debug, "wavpackdec", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_wavpack_dec_debug, "wavpack_dec", 0,
|
||||||
"wavpack decoder");
|
"Wavpack decoder");
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -978,8 +978,8 @@ gst_wavpack_enc_plugin_init (GstPlugin * plugin)
|
||||||
GST_RANK_NONE, GST_TYPE_WAVPACK_ENC))
|
GST_RANK_NONE, GST_TYPE_WAVPACK_ENC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_wavpack_enc_debug, "wavpackenc", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_wavpack_enc_debug, "wavpack_enc", 0,
|
||||||
"wavpack encoder");
|
"Wavpack encoder");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1176,8 +1176,8 @@ gst_wavpack_parse_plugin_init (GstPlugin * plugin)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_wavpack_parse_debug, "wavpackparse", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_wavpack_parse_debug, "wavpack_parse", 0,
|
||||||
"wavpack file parser");
|
"Wavpack file parser");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,9 @@
|
||||||
|
|
||||||
#include "gstwavpackstreamreader.h"
|
#include "gstwavpackstreamreader.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (wavpack_debug);
|
||||||
|
#define GST_CAT_DEFAULT wavpack_debug
|
||||||
|
|
||||||
static int32_t
|
static int32_t
|
||||||
gst_wavpack_stream_reader_read_bytes (void *id, void *data, int32_t bcount)
|
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
|
static int
|
||||||
gst_wavpack_stream_reader_set_pos_abs (void *id, uint32_t pos)
|
gst_wavpack_stream_reader_set_pos_abs (void *id, uint32_t pos)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG ("should not be called");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
gst_wavpack_stream_reader_set_pos_rel (void *id, int32_t delta, int mode)
|
gst_wavpack_stream_reader_set_pos_rel (void *id, int32_t delta, int mode)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG ("should not be called");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +90,7 @@ gst_wavpack_stream_reader_can_seek (void *id)
|
||||||
static int32_t
|
static int32_t
|
||||||
gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
|
gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG ("should not be called");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue