info: make taglists and datetime loggable via GST_PTR_FORMAT

This commit is contained in:
Tim-Philipp Müller 2012-07-14 18:52:50 +01:00
parent 35dbbdb50e
commit 379c3cd184

View file

@ -120,6 +120,8 @@
#include "gstutils.h"
#include "gstquark.h"
#include "gstsegment.h"
#include "gstvalue.h"
#ifdef HAVE_VALGRIND_VALGRIND_H
# include <valgrind/valgrind.h>
#endif
@ -623,6 +625,13 @@ gst_debug_print_object (gpointer ptr)
if (*(GType *) ptr == GST_TYPE_STRUCTURE) {
return gst_info_structure_to_string ((const GstStructure *) ptr);
}
if (*(GType *) ptr == GST_TYPE_TAG_LIST) {
/* FIXME: want pretty tag list with long byte dumps removed.. */
return gst_tag_list_to_string ((GstTagList *) ptr);
}
if (*(GType *) ptr == GST_TYPE_DATE_TIME) {
return __gst_date_time_serialize ((GstDateTime *) ptr, TRUE);
}
if (GST_IS_BUFFER (ptr)) {
GstBuffer *buf = (GstBuffer *) ptr;
gchar *ret;