From dade05062a99e51e7304cf13bca442745385fab3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 26 Sep 2005 11:21:42 +0000 Subject: [PATCH] gst/base/gstbasesrc.c: Some more debugging info. Original commit message from CVS: * gst/base/gstbasesrc.c: (gst_base_src_get_range), (gst_base_src_is_seekable), (gst_base_src_change_state): Some more debugging info. --- ChangeLog | 6 ++++++ gst/base/gstbasesrc.c | 6 ++++++ libs/gst/base/gstbasesrc.c | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 011ea3a07f..fc2bfd89dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-26 Wim Taymans + + * gst/base/gstbasesrc.c: (gst_base_src_get_range), + (gst_base_src_is_seekable), (gst_base_src_change_state): + Some more debugging info. + 2005-09-25 Stefan Kost * docs/gst/gstreamer-sections.txt: diff --git a/gst/base/gstbasesrc.c b/gst/base/gstbasesrc.c index 15018e9590..6f94a46f19 100644 --- a/gst/base/gstbasesrc.c +++ b/gst/base/gstbasesrc.c @@ -585,6 +585,10 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length, if (!bclass->create) goto no_function; + GST_DEBUG_OBJECT (src, + "reading offset %" G_GUINT64_FORMAT ", length %u, size %" + G_GUINT64_FORMAT, offset, length, src->size); + /* check size */ if (src->size != -1) { if (offset > src->size) @@ -772,6 +776,8 @@ gst_base_src_is_seekable (GstBaseSrc * basesrc) else basesrc->seekable = FALSE; + GST_DEBUG_OBJECT (basesrc, "is seekable: %d", basesrc->seekable); + return basesrc->seekable; } diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 15018e9590..6f94a46f19 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -585,6 +585,10 @@ gst_base_src_get_range (GstPad * pad, guint64 offset, guint length, if (!bclass->create) goto no_function; + GST_DEBUG_OBJECT (src, + "reading offset %" G_GUINT64_FORMAT ", length %u, size %" + G_GUINT64_FORMAT, offset, length, src->size); + /* check size */ if (src->size != -1) { if (offset > src->size) @@ -772,6 +776,8 @@ gst_base_src_is_seekable (GstBaseSrc * basesrc) else basesrc->seekable = FALSE; + GST_DEBUG_OBJECT (basesrc, "is seekable: %d", basesrc->seekable); + return basesrc->seekable; }