Index: libs/gst/base/gstbasesrc.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/libs/gst/base/gstbasesrc.c,v
retrieving revision 1.122
diff -u -p -u -p -r1.122 gstbasesrc.c
--- libs/gst/base/gstbasesrc.c	23 Oct 2006 14:51:30 -0000	1.122
+++ libs/gst/base/gstbasesrc.c	5 Nov 2006 07:37:00 -0000
@@ -1297,6 +1297,8 @@ gst_base_src_update_length (GstBaseSrc *
       /* else we can clip to the end */
       if (G_UNLIKELY (offset + *length >= maxsize))
         *length = maxsize - offset;
+
+      gst_segment_set_duration (&src->segment, GST_FORMAT_BYTES, maxsize);
     }
   }
 
