[gst-devel] make the filesrc deal with files whose size is growing
ds at schleef.org
Wed Sep 24 10:25:02 CEST 2003
On Wed, Sep 24, 2003 at 09:41:53AM +0200, Christophe Fergeau wrote:
> I needed to play a file with gstreamer while it was being ripped, and I
> noticed that the filesrc didn't properly take into account files whose
> size is growing while it is processing them. I came up with the attached
> patch to handle that.
> The patch is quite ugly imo, so I was wondering if someone had better
> ideas to handle that.
Seems ok to me. Adding a object property is bogus, though, since
files can always change size. update_filelen() should probably
be called gst_filesrc_check_file_size(). Also, when seeking,
filesrc should unconditionally update the file length.
More information about the gstreamer-devel