summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2016-07-20 11:47:48 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-07-25 13:40:39 +0300
commitb0013e1037358d109fd4491e6908a1be029cf25f (patch)
tree1fd4df21651057c5d68180499afedb989a94ca9c
parente8ae7e52284b2426ecee440e3d8eaa222e4062b6 (diff)
downloadgstreamer-plugins-base-b0013e1037358d109fd4491e6908a1be029cf25f.tar.gz
oggdemux: fix unknown duration playing Ogg over HTTP
If the duration is not known from the chain, it might be known by the startup seek. This fixes failure to seek. Merged with a patch from Tim-Philipp Müller <tim@centricular.com> https://bugzilla.gnome.org/show_bug.cgi?id=768991
-rw-r--r--ext/ogg/gstoggdemux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index bd129ab07..fd0c1d214 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -344,7 +344,9 @@ gst_ogg_pad_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
else
stop = MAX (idx_time, stop);
} else {
- stop = -1; /* we've no clue, sadly, without seeking */
+ stop = ogg->push_time_length;
+ if (stop == -1)
+ stop = ogg->total_time;
}
}
}