mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +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
a887fc157e
commit
99baf8ae17
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 (!(res && seekable)) {
|
||||||
if (!gst_base_parse_get_duration (parse, GST_FORMAT_TIME, &duration)
|
if (!gst_base_parse_get_duration (parse, GST_FORMAT_TIME, &duration)
|
||||||
|| duration == -1) {
|
|| 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 {
|
} else {
|
||||||
seekable = parse->priv->upstream_seekable;
|
seekable = parse->priv->upstream_seekable;
|
||||||
GST_LOG_OBJECT (parse, "already determine upstream seekabled: %d",
|
GST_LOG_OBJECT (parse, "already determine upstream seekabled: %d",
|
||||||
|
|
Loading…
Reference in a new issue