plugins/elements/gstfdsrc.c: Get the arguments to lseek() the right way around.

Original commit message from CVS:
* plugins/elements/gstfdsrc.c: (gst_fd_src_update_fd):
Get the arguments to lseek() the right way around.
Fixes 367677.
This commit is contained in:
Michael Smith 2006-10-30 18:43:12 +00:00
parent 656c529833
commit 94fc10847a
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-10-30 Michael Smith <msmith@fluendo.com>
* plugins/elements/gstfdsrc.c: (gst_fd_src_update_fd):
Get the arguments to lseek() the right way around.
Fixes 367677.
2006-10-30 Wim Taymans <wim@fluendo.com>
Patch by: gorshkov <gorshkov at oghma dot on dot ca>

View file

@ -204,7 +204,7 @@ gst_fd_src_update_fd (GstFdSrc * src)
goto not_seekable;
/* Try a seek of 0 bytes offset to check for seekability */
if (lseek (src->fd, SEEK_CUR, 0) < 0)
if (lseek (src->fd, 0, SEEK_CUR) < 0)
goto not_seekable;
src->seekable_fd = TRUE;