plugins/elements/gstfdsrc.c: Get the arguments to lseek() the right way around.
authorMichael Smith <msmith@xiph.org>
Mon, 30 Oct 2006 18:43:12 +0000 (18:43 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 30 Oct 2006 18:43:12 +0000 (18:43 +0000)
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.

ChangeLog
plugins/elements/gstfdsrc.c

index 9be4cec..07f3aef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index d3fa655..dc9a0e6 100644 (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;