+2005-11-07 Wim Taymans <wim@fluendo.com>
+
+ * gst/base/gstbasesrc.c: (gst_base_src_init),
+ (gst_base_src_get_range):
+ Set the segment_end to -1 initially. Fixed typefind.
+
2005-11-07 Tim-Philipp Müller <tim at centricular dot net>
* gst/base/gstadapter.c:
basesrc->blocksize = DEFAULT_BLOCKSIZE;
basesrc->clock_id = NULL;
+ basesrc->segment_start = 0;
+ basesrc->segment_end = -1;
GST_OBJECT_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
if (G_UNLIKELY (!bclass->create))
goto no_function;
- GST_DEBUG_OBJECT (src,
- "reading offset %" G_GUINT64_FORMAT ", length %u, size %"
- G_GINT64_FORMAT, offset, length, src->size);
-
/* the max amount of bytes to read is the total size or
* up to the segment_end if present. */
if (src->segment_end != -1)
else
maxsize = src->size;
+ GST_DEBUG_OBJECT (src,
+ "reading offset %" G_GUINT64_FORMAT ", length %u, size %" G_GINT64_FORMAT
+ ", segment_end %" G_GINT64_FORMAT ", maxsize %" G_GINT64_FORMAT, offset,
+ length, src->size, src->segment_end, maxsize);
+
/* check size */
if (maxsize != -1) {
if (offset > maxsize)
basesrc->blocksize = DEFAULT_BLOCKSIZE;
basesrc->clock_id = NULL;
+ basesrc->segment_start = 0;
+ basesrc->segment_end = -1;
GST_OBJECT_FLAG_UNSET (basesrc, GST_BASE_SRC_STARTED);
if (G_UNLIKELY (!bclass->create))
goto no_function;
- GST_DEBUG_OBJECT (src,
- "reading offset %" G_GUINT64_FORMAT ", length %u, size %"
- G_GINT64_FORMAT, offset, length, src->size);
-
/* the max amount of bytes to read is the total size or
* up to the segment_end if present. */
if (src->segment_end != -1)
else
maxsize = src->size;
+ GST_DEBUG_OBJECT (src,
+ "reading offset %" G_GUINT64_FORMAT ", length %u, size %" G_GINT64_FORMAT
+ ", segment_end %" G_GINT64_FORMAT ", maxsize %" G_GINT64_FORMAT, offset,
+ length, src->size, src->segment_end, maxsize);
+
/* check size */
if (maxsize != -1) {
if (offset > maxsize)