mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +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)
|
||||
|| duration == -1) {
|
||||
/* seekable if we still have a chance to get duration later on */
|
||||
seekable =
|
||||
parse->priv->upstream_seekable && parse->priv->update_interval;
|
||||
seekable = parse->priv->upstream_seekable &&
|
||||
(parse->priv->update_interval > 0);
|
||||
} else {
|
||||
seekable = parse->priv->upstream_seekable;
|
||||
GST_LOG_OBJECT (parse, "already determine upstream seekabled: %d",
|
||||
|
|
Loading…
Reference in a new issue