/* TOC functions */
/* These functions are used to parse TOC messages, events and queries */
-GstToc* _gst_toc_from_structure (const GstStructure *toc);
-GstStructure* _gst_toc_to_structure (const GstToc *toc);
-gboolean _gst_toc_structure_get_updated (const GstStructure * toc);
-void _gst_toc_structure_set_updated (GstStructure * toc, gboolean updated);
-gchar* _gst_toc_structure_get_extend_uid (const GstStructure * toc);
-void _gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid);
+GstToc* __gst_toc_from_structure (const GstStructure *toc);
+GstStructure* __gst_toc_to_structure (const GstToc *toc);
+gboolean __gst_toc_structure_get_updated (const GstStructure * toc);
+void __gst_toc_structure_set_updated (GstStructure * toc, gboolean updated);
+gchar* __gst_toc_structure_get_extend_uid (const GstStructure * toc);
+void __gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid);
/* Private registry functions */
gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry);
GST_CAT_INFO (GST_CAT_EVENT, "creating toc event");
- toc_struct = _gst_toc_to_structure (toc);
+ toc_struct = __gst_toc_to_structure (toc);
if (G_LIKELY (toc_struct != NULL)) {
- _gst_toc_structure_set_updated (toc_struct, updated);
+ __gst_toc_structure_set_updated (toc_struct, updated);
return gst_event_new_custom (GST_EVENT_TOC, toc_struct);
} else
return NULL;
g_return_if_fail (toc != NULL);
structure = gst_event_get_structure (event);
- *toc = _gst_toc_from_structure (structure);
+ *toc = __gst_toc_from_structure (structure);
if (updated != NULL)
- *updated = _gst_toc_structure_get_updated (structure);
+ *updated = __gst_toc_structure_get_updated (structure);
}
/**
g_return_val_if_fail (toc != NULL, NULL);
- toc_struct = _gst_toc_to_structure (toc);
+ toc_struct = __gst_toc_to_structure (toc);
if (G_LIKELY (toc_struct != NULL)) {
- _gst_toc_structure_set_updated (toc_struct, updated);
+ __gst_toc_structure_set_updated (toc_struct, updated);
return gst_message_new_custom (GST_MESSAGE_TOC, src, toc_struct);
} else
return NULL;
g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_TOC);
g_return_if_fail (toc != NULL);
- *toc = _gst_toc_from_structure (GST_MESSAGE_STRUCTURE (message));
+ *toc = __gst_toc_from_structure (GST_MESSAGE_STRUCTURE (message));
if (updated != NULL)
- *updated = _gst_toc_structure_get_updated (GST_MESSAGE_STRUCTURE (message));
+ *updated =
+ __gst_toc_structure_get_updated (GST_MESSAGE_STRUCTURE (message));
}
g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_TOC);
g_return_if_fail (toc != NULL);
- structure = _gst_toc_to_structure (toc);
+ structure = __gst_toc_to_structure (toc);
g_return_if_fail (structure != NULL);
}
if (extend_uid != NULL)
- _gst_toc_structure_set_extend_uid (structure, extend_uid);
+ __gst_toc_structure_set_extend_uid (structure, extend_uid);
gst_structure_set_parent_refcount (structure, &(query->mini_object.refcount));
GST_QUERY_STRUCTURE (query) = structure;
g_return_if_fail (structure != NULL);
if (toc != NULL)
- *toc = _gst_toc_from_structure (structure);
+ *toc = __gst_toc_from_structure (structure);
if (extend_uid != NULL)
- *extend_uid = _gst_toc_structure_get_extend_uid (structure);
+ *extend_uid = __gst_toc_structure_get_extend_uid (structure);
}
}
GstToc *
-_gst_toc_from_structure (const GstStructure * toc)
+__gst_toc_from_structure (const GstStructure * toc)
{
GstToc *ret;
GstTocEntry *subentry;
}
GstStructure *
-_gst_toc_to_structure (const GstToc * toc)
+__gst_toc_to_structure (const GstToc * toc)
{
GValue val = { 0 };
GValue subentries_val = { 0 };
}
gboolean
-_gst_toc_structure_get_updated (const GstStructure * toc)
+__gst_toc_structure_get_updated (const GstStructure * toc)
{
const GValue *val;
}
void
-_gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
+__gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
{
GValue val = { 0 };
}
gchar *
-_gst_toc_structure_get_extend_uid (const GstStructure * toc)
+__gst_toc_structure_get_extend_uid (const GstStructure * toc)
{
const GValue *val;
}
void
-_gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid)
+__gst_toc_structure_set_extend_uid (GstStructure * toc,
+ const gchar * extend_uid)
{
GValue val = { 0 };