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:
Nicolas Dufresne 2018-02-21 21:43:59 -05:00
parent 580e3a799e
commit 25aed8c7ff

View file

@ -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",