GNOME Bugzilla – Bug 332278
filesrc element seek does not correct read position
Last modified: 2006-02-23 06:15:33 UTC
In the filesrc element, if the mmap code path is not used, i.e gst_file_src_create_read routine is called, setting of a offset different than the current read_position will cause a seek. But the read_position is not updated after the seek. This will cause some demuxers to fail on an architecture which does not support mmap. Currently: if (src->read_position != offset) { off_t res; res = lseek (src->fd, offset, SEEK_SET); if (res < 0 || res != offset) goto seek_failed; } Should be: if (src->read_position != offset) { off_t res; res = lseek (src->fd, offset, SEEK_SET); if (res < 0 || res != offset) goto seek_failed; src->read_position = offset }
for some reason, bugzilla created duplicate of this *** This bug has been marked as a duplicate of 332277 ***