baseparse: tune QUERY_SEEKING response

Even if we currently do not have a duration yet, assume seekable if
it looks like we'll likely be able to determine it later on
(which coincides with needed information to perform seeking).

Fixes #641047.
This commit is contained in:
Mark Nauwelaerts 2011-02-07 14:46:57 +01:00 committed by Tim-Philipp Müller
parent 694d5c4b75
commit 3882b7f2ed

View file

@ -3016,7 +3016,9 @@ gst_base_parse_query (GstPad * pad, GstQuery * query)
if (!(res && seekable)) {
if (!gst_base_parse_get_duration (parse, GST_FORMAT_TIME, &duration)
|| duration == -1) {
seekable = FALSE;
/* seekable if we still have a chance to get duration later on */
seekable =
parse->priv->upstream_seekable && parse->priv->update_interval;
} else {
seekable = parse->priv->upstream_seekable;
GST_LOG_OBJECT (parse, "already determine upstream seekabled: %d",