GST_DEBUG_CATEGORY (qtdemux_debug);
-#if 0
-#define qtdemux_dump_mem(a,b) gst_util_dump_mem(a,b)
-#else
-#define qtdemux_dump_mem(a,b) /* */
-#endif
-
typedef struct _QtNode QtNode;
typedef struct _QtDemuxSegment QtDemuxSegment;
typedef struct _QtDemuxSample QtDemuxSample;
buf += 31;
buf += 4; /* and 4 bytes reserved */
- qtdemux_dump_mem (buf, end - buf);
+ GST_MEMDUMP_OBJECT (qtdemux, "mp4v", buf, end - buf);
qtdemux_parse_container (qtdemux, node, buf, end);
}
char *codec_name = NULL;
GstCaps *caps = NULL;
- qtdemux_dump_mem (ptr, len);
+ GST_MEMDUMP_OBJECT (qtdemux, "esds", ptr, len);
ptr += 8;
GST_DEBUG_OBJECT (qtdemux, "version/flags = %08x", QT_UINT32 (ptr));
ptr += 4;
ptr += 13;
break;
case 0x05:
- GST_DEBUG_OBJECT (qtdemux, "data:");
- qtdemux_dump_mem (ptr, len);
+ GST_MEMDUMP_OBJECT (qtdemux, "data", ptr, len);
data_ptr = ptr;
data_len = len;
ptr += len;
break;
default:
GST_ERROR_OBJECT (qtdemux, "parse error");
+ break;
}
}
buffer = gst_buffer_new_and_alloc (data_len);
memcpy (GST_BUFFER_DATA (buffer), data_ptr, data_len);
- qtdemux_dump_mem (GST_BUFFER_DATA (buffer), data_len);
GST_DEBUG_OBJECT (qtdemux, "setting codec_data from esds");
+ GST_MEMDUMP_OBJECT (qtdemux, "codec_data from esds", data_ptr, data_len);
gst_caps_set_simple (stream->caps, "codec_data", GST_TYPE_BUFFER,
buffer, NULL);
#include "qtdemux_types.h"
#include "qtdemux_dump.h"
-#if 0
-#define qtdemux_dump_mem(a,b) gst_util_dump_mem(a,b)
-#else
-#define qtdemux_dump_mem(a,b) /* */
-#endif
-
void
qtdemux_dump_mvhd (GstQTDemux * qtdemux, guint8 * buffer, int depth)
{
GST_LOG ("%*s length: %d", depth, "", QT_UINT32 (buffer + 0));
len = QT_UINT32 (buffer + 0);
- qtdemux_dump_mem (buffer, len);
-
+ GST_MEMDUMP_OBJECT (qtdemux, "unknown atom data", buffer, len);
}
static gboolean