+2008-01-09 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * gst/gstbuffer.c:
+ Update some comments.
+
+ * tools/gst-inspect.c: (print_element_properties_info):
+ Improve printing of flags.
+
2008-01-08 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/base/gstbasetransform.c:
* Returns: a reference to the #GstCaps. unref after usage.
* Returns NULL if there were no caps on this buffer.
*/
-/* FIXME can we make this threadsafe without a lock on the buffer?
- * We can use compare and swap and atomic reads. */
+/* this is not made atomic because if the buffer were reffed from multiple
+ * threads, it would have a refcount > 2 and thus be immutable.
+ */
GstCaps *
gst_buffer_get_caps (GstBuffer * buffer)
{
* be increased and any previous caps on the buffer will be
* unreffed.
*/
-/* FIXME can we make this threadsafe without a lock on the buffer?
- * We can use compare and swap and atomic reads. Another idea is to
- * not attach the caps to the buffer but use an event to signal a caps
- * change. */
+/* this is not made atomic because if the buffer were reffed from multiple
+ * threads, it would have a refcount > 2 and thus be immutable.
+ */
void
gst_buffer_set_caps (GstBuffer * buffer, GstCaps * caps)
{
}
n_print
- ("%-23.23s Flags \"%s\" Default: %d, \"%s\" Current: %d, \"%s\"",
+ ("%-23.23s Flags \"%s\" Default: 0x%08x, \"%s\" Current: 0x%08x, \"%s\"",
"", g_type_name (G_VALUE_TYPE (&value)), pflags->default_value,
(def_flags ? def_flags->str : "(none)"), flags_value,
(cur_flags ? cur_flags->str : "(none)"));