gio: Make sure that we have the correct stream position when starting
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 9 Jul 2009 11:45:13 +0000 (13:45 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 9 Jul 2009 11:45:13 +0000 (13:45 +0200)
ext/gio/gstgiobasesrc.c

index f67015270f9853d32755e6572b0aeb3d981f90b1..133e12c263abd22605bd606c28ae21b4304c5580 100644 (file)
@@ -136,6 +136,9 @@ gst_gio_base_src_start (GstBaseSrc * base_src)
     return FALSE;
   }
 
+  if (G_IS_SEEKABLE (src->stream))
+    src->position = g_seekable_tell (G_SEEKABLE (src->stream));
+
   GST_DEBUG_OBJECT (src, "started source");
 
   return TRUE;