summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-11-26 14:51:33 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-11-26 14:51:33 +0000
commitab5a4110e2d379f4c1cf3bc71292b3c361cb27d6 (patch)
treefaed005591193dff13ce4af47ab7b8a1a16832ea /gst-libs/gst
parent999fda13e6e5c6bfc54895e08fc891febf85a9ce (diff)
downloadgst-plugins-bad-ab5a4110e2d379f4c1cf3bc71292b3c361cb27d6.tar.gz
gst-plugins-bad-ab5a4110e2d379f4c1cf3bc71292b3c361cb27d6.tar.bz2
gst-plugins-bad-ab5a4110e2d379f4c1cf3bc71292b3c361cb27d6.zip
flac debug cleanup m4 for ffmpeg
Original commit message from CVS: flac debug cleanup m4 for ffmpeg
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/media-info/media-info.c13
1 files changed, 12 insertions, 1 deletions
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 <string.h>
#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);
}