From ab5a4110e2d379f4c1cf3bc71292b3c361cb27d6 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 26 Nov 2002 14:51:33 +0000 Subject: flac debug cleanup m4 for ffmpeg Original commit message from CVS: flac debug cleanup m4 for ffmpeg --- gst-libs/gst/media-info/media-info.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/media-info/media-info.c b/gst-libs/gst/media-info/media-info.c index 4aabcce8..08f93eb6 100644 --- a/gst-libs/gst/media-info/media-info.c +++ b/gst-libs/gst/media-info/media-info.c @@ -21,7 +21,7 @@ #include #include "media-info.h" -static gboolean _gst_media_info_debug = FALSE; +static gboolean _gst_media_info_debug = TRUE; #define GMI_DEBUG(format, args...) \ { if (_gst_media_info_debug) { g_print ( format , ## args ); }} @@ -262,6 +262,16 @@ gst_media_info_get_property (GObject *object, guint prop_id, } } +GstMediaInfo * +gst_media_info_new (const gchar *source_element) +{ + GstMediaInfo *info = g_object_new (GST_MEDIA_INFO_TYPE, NULL); + if (source_element) + g_object_set (G_OBJECT (info), "source", source_element); + + return info; +} + /** * private functions */ @@ -631,6 +641,7 @@ gst_media_info_find_streaminfo (GstMediaInfo *info) /* substract to get the length */ GMI_DEBUG("DEBUG: start %lld, end %lld\n", value_start, value_end); value_end -= value_start; + g_print ("DEBUG: length: %d\n", (int) value_end); length = gst_props_entry_new ("length", GST_PROPS_INT ((int) value_end)); gst_props_add_entry (gst_caps_get_props (streaminfo), length); } -- cgit v1.2.1