#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));
#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)
{
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;
}
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;
}
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;
}
#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)
{
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;
}
static int32_t
gst_wavpack_stream_reader_write_bytes (void *id, void *data, int32_t bcount)
{
+ GST_DEBUG ("should not be called");
return 0;
}