gst/gstbuffer.c: Update some comments.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 9 Jan 2008 12:19:31 +0000 (12:19 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 9 Jan 2008 12:19:31 +0000 (12:19 +0000)
Original commit message from CVS:
* gst/gstbuffer.c:
Update some comments.
* tools/gst-inspect.c: (print_element_properties_info):
Improve printing of flags.

ChangeLog
gst/gstbuffer.c
tools/gst-inspect.c

index b8996ea..1bcf4f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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:
index cf26d77..30e92eb 100644 (file)
@@ -380,8 +380,9 @@ gst_buffer_try_new_and_alloc (guint size)
  * 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)
 {
@@ -406,10 +407,9 @@ 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)
 {
index b4cbd98..7712225 100644 (file)
@@ -511,7 +511,7 @@ print_element_properties_info (GstElement * element)
           }
 
           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)"));