From 379c3cd184065aa154dd3e76f378134d5d85f4dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 14 Jul 2012 18:52:50 +0100 Subject: [PATCH] info: make taglists and datetime loggable via GST_PTR_FORMAT --- gst/gstinfo.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 5268d47..e05cd22 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -120,6 +120,8 @@ #include "gstutils.h" #include "gstquark.h" #include "gstsegment.h" +#include "gstvalue.h" + #ifdef HAVE_VALGRIND_VALGRIND_H # include #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; -- 2.7.4