mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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:
parent
f0435d6fd6
commit
f3f44f81c3
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue