From 2bb835f69af69c98d31f857456211fd05d5e5251 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 17 Feb 2011 14:12:43 +0100 Subject: [PATCH] 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). --- gst/videoparsers/gstbaseparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videoparsers/gstbaseparse.c b/gst/videoparsers/gstbaseparse.c index 4ab5dbb367..db2691fe2e 100644 --- a/gst/videoparsers/gstbaseparse.c +++ b/gst/videoparsers/gstbaseparse.c @@ -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",