From b9c79380aa07e3cf2c00a190bbbcb0b0c252df96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 9 Jul 2009 13:45:13 +0200 Subject: [PATCH] gio: Make sure that we have the correct stream position when starting --- ext/gio/gstgiobasesrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c index f67015270f..133e12c263 100644 --- a/ext/gio/gstgiobasesrc.c +++ b/ext/gio/gstgiobasesrc.c @@ -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;