Handle it the same way live sources would, that it by handling the query and
return an unknown duration.
Fixes #566
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1279>
gst_query_parse_duration (query, &fmt, NULL);
+ if (gst_adaptive_demux_is_live (demux)) {
+ /* We are able to answer this query: the duration is unknown */
+ gst_query_set_duration (query, fmt, -1);
+ ret = TRUE;
+ break;
+ }
+
if (fmt == GST_FORMAT_TIME
&& g_atomic_int_get (&demux->priv->have_manifest)) {
duration = demux_class->get_duration (demux);