gst_discoverer_info_get_toc
gst_discoverer_info_get_uri
gst_discoverer_info_get_seekable
+gst_discoverer_info_get_live
gst_discoverer_info_ref
gst_discoverer_info_unref
gst_discoverer_info_to_variant
ret->duration = ptr->duration;
ret->result = ptr->result;
ret->seekable = ptr->seekable;
+ ret->live = ptr->live;
if (ptr->misc)
ret->misc = gst_structure_copy (ptr->misc);
DISCOVERER_INFO_ACCESSOR_CODE (seekable, gboolean, FALSE);
/**
+ * gst_discoverer_info_get_live:
+ * @info: a #GstDiscovererInfo
+ *
+ * Returns: whether the URI is live.
+ *
+ * Since: 1.14
+ */
+
+DISCOVERER_INFO_ACCESSOR_CODE (live, gboolean, FALSE);
+
+/**
* gst_discoverer_info_get_misc:
* @info: a #GstDiscovererInfo
*
}
}
+ if (dc->priv->target_state == GST_STATE_PAUSED)
+ dc->priv->current_info->live = FALSE;
+ else
+ dc->priv->current_info->live = TRUE;
+
if (dc->priv->current_topology)
dc->priv->current_info->stream_info = parse_stream_topology (dc,
dc->priv->current_topology, NULL);
tags_str = gst_tag_list_to_string (info->tags);
ret =
- g_variant_new ("(mstbms)", info->uri, info->duration, info->seekable,
- tags_str);
+ g_variant_new ("(mstbmsb)", info->uri, info->duration, info->seekable,
+ tags_str, info->live);
g_free (tags_str);
str = _maybe_get_string_from_tuple (info_variant, 3);
if (str)
info->tags = gst_tag_list_new_from_string (str);
+
+ GET_FROM_TUPLE (info_variant, boolean, 4, &info->live);
}
static void
gboolean gst_discoverer_info_get_seekable(const GstDiscovererInfo* info);
GST_EXPORT
+gboolean gst_discoverer_info_get_live(const GstDiscovererInfo* info);
+
+GST_EXPORT
const GstStructure* gst_discoverer_info_get_misc(const GstDiscovererInfo* info);
GST_EXPORT
GstStructure *misc;
GstTagList *tags;
GstToc *toc;
+ gboolean live;
gboolean seekable;
GPtrArray *missing_elements_details;
gst_discoverer_info_get_missing_elements_installer_details
gst_discoverer_info_get_result
gst_discoverer_info_get_seekable
+ gst_discoverer_info_get_live
gst_discoverer_info_get_stream_info
gst_discoverer_info_get_stream_list
gst_discoverer_info_get_streams