mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
baseparse: Fix check for update_interval
update_interval may be -1 https://bugzilla.gnome.org/show_bug.cgi?id=793284
This commit is contained in:
parent
580e3a799e
commit
25aed8c7ff
1 changed files with 2 additions and 2 deletions
|
@ -4105,8 +4105,8 @@ gst_base_parse_src_query_default (GstBaseParse * parse, GstQuery * query)
|
||||||
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 if we still have a chance to get duration later on */
|
/* seekable if we still have a chance to get duration later on */
|
||||||
seekable =
|
seekable = parse->priv->upstream_seekable &&
|
||||||
parse->priv->upstream_seekable && parse->priv->update_interval;
|
(parse->priv->update_interval > 0);
|
||||||
} 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