projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pad: Fix printf format when printing hook id
[platform/upstream/gstreamer.git]
/
gst
/
gsttoc.c
diff --git
a/gst/gsttoc.c
b/gst/gsttoc.c
index
b1732b2
..
fd6bd66
100644
(file)
--- a/
gst/gsttoc.c
+++ b/
gst/gsttoc.c
@@
-21,6
+21,7
@@
/**
* SECTION:gsttoc
/**
* SECTION:gsttoc
+ * @title: GstToc
* @short_description: Generic table of contents support
* @see_also: #GstStructure, #GstEvent, #GstMessage, #GstQuery
*
* @short_description: Generic table of contents support
* @see_also: #GstStructure, #GstEvent, #GstMessage, #GstQuery
*
@@
-308,6
+309,10
@@
gst_toc_free (GstToc * toc)
if (toc->tags != NULL)
gst_tag_list_unref (toc->tags);
if (toc->tags != NULL)
gst_tag_list_unref (toc->tags);
+#ifdef USE_POISONING
+ memset (toc, 0xff, sizeof (GstToc));
+#endif
+
g_slice_free (GstToc, toc);
}
g_slice_free (GstToc, toc);
}
@@
-324,6
+329,10
@@
gst_toc_entry_free (GstTocEntry * entry)
if (entry->tags != NULL)
gst_tag_list_unref (entry->tags);
if (entry->tags != NULL)
gst_tag_list_unref (entry->tags);
+#ifdef USE_POISONING
+ memset (entry, 0xff, sizeof (GstTocEntry));
+#endif
+
g_slice_free (GstTocEntry, entry);
}
g_slice_free (GstTocEntry, entry);
}
@@
-776,7
+785,7
@@
gst_toc_entry_get_toc (GstTocEntry * entry)
*
* Gets the parent #GstTocEntry of @entry.
*
*
* Gets the parent #GstTocEntry of @entry.
*
- * Returns: (transfer none): The parent #GstTocEntry of @entry
+ * Returns: (transfer none)
(nullable)
: The parent #GstTocEntry of @entry
*/
GstTocEntry *
gst_toc_entry_get_parent (GstTocEntry * entry)
*/
GstTocEntry *
gst_toc_entry_get_parent (GstTocEntry * entry)