From: <sl...@ke...> - 2009-07-09 11:46:05
|
Module: gst-plugins-base Branch: master Commit: b9c79380aa07e3cf2c00a190bbbcb0b0c252df96 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=b9c79380aa07e3cf2c00a190bbbcb0b0c252df96 Author: Sebastian Dröge <seb...@co...> Date: Thu Jul 9 13:45:13 2009 +0200 gio: Make sure that we have the correct stream position when starting --- ext/gio/gstgiobasesrc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c index f670152..133e12c 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; |