.. instead of the use of default debug category.
And, make new header to declare the debug category
https://bugzilla.gnome.org/show_bug.cgi?id=791483
qtatomparser.h \
qtdemux.h \
qtdemux_types.h \
+ qtdemux_debug.h \
qtdemux_dump.h \
qtdemux_lang.h \
qtpalette.h \
* Boston, MA 02111-1307, USA.
*/
+#include "qtdemux_debug.h"
#include "gstisoff.h"
#include <gst/base/gstbytereader.h>
+#define GST_CAT_DEFAULT qtdemux_debug
+
void
gst_isoff_qt_sidx_parser_init (GstSidxParser * parser)
{
#define ABSDIFF(x, y) ( (x) > (y) ? ((x) - (y)) : ((y) - (x)) )
GST_DEBUG_CATEGORY (qtdemux_debug);
+#define GST_CAT_DEFAULT qtdemux_debug
typedef struct _QtDemuxSegment QtDemuxSegment;
typedef struct _QtDemuxSample QtDemuxSample;
G_BEGIN_DECLS
-GST_DEBUG_CATEGORY_EXTERN (qtdemux_debug);
-#define GST_CAT_DEFAULT qtdemux_debug
-
#define GST_TYPE_QTDEMUX \
(gst_qtdemux_get_type())
#define GST_QTDEMUX(obj) \
--- /dev/null
+#ifndef __GST_QTDEMUX_DEBUG_H__
+#define __GST_QTDEMUX_DEBUG_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+GST_DEBUG_CATEGORY_EXTERN (qtdemux_debug);
+
+G_END_DECLS
+
+#endif /* __GST_QTDEMUX_DEBUG_H__ */
* Boston, MA 02110-1301, USA.
*/
+#include "qtdemux_debug.h"
#include "qtdemux_types.h"
#include "qtdemux_dump.h"
#include "fourcc.h"
#include <string.h>
+#define GST_CAT_DEFAULT qtdemux_debug
+
#define GET_UINT8(data) gst_byte_reader_get_uint8_unchecked(data)
#define GET_UINT16(data) gst_byte_reader_get_uint16_be_unchecked(data)
#define GET_UINT32(data) gst_byte_reader_get_uint32_be_unchecked(data)
* Boston, MA 02110-1301, USA.
*/
-#include "qtdemux.h"
+#include "qtdemux_debug.h"
#include "qtdemux_lang.h"
#include <string.h>
+#define GST_CAT_DEFAULT qtdemux_debug
+
/* http://developer.apple.com/mac/library/documentation/QuickTime/QTFF/QTFFChap4/qtff4.html */
static const gchar qt_lang_map[][4] = {
* Boston, MA 02110-1301, USA.
*/
+#include "qtdemux_debug.h"
#include "qtdemux_types.h"
#include "qtdemux_dump.h"
#include "fourcc.h"
+#define GST_CAT_DEFAULT qtdemux_debug
+
static const QtNodeType qt_node_types[] = {
{FOURCC_moov, "movie", QT_FLAG_CONTAINER,},
{FOURCC_mvhd, "movie header", 0,