audioaggregator: Document that the pad's audio info is read-only and needs the object lock
Also fix indentation in the header a bit.
diff --git a/gst-libs/gst/audio/gstaudioaggregator.h b/gst-libs/gst/audio/gstaudioaggregator.h
index 9cd66d3..a608983 100644
--- a/gst-libs/gst/audio/gstaudioaggregator.h
+++ b/gst-libs/gst/audio/gstaudioaggregator.h
@@ -68,10 +68,11 @@
{
GstAggregatorPad parent;
+ /* read-only, with OBJECT_LOCK */
GstAudioInfo info;
/*< private >*/
- GstAudioAggregatorPadPrivate * priv;
+ GstAudioAggregatorPadPrivate *priv;
gpointer _gst_reserved[GST_PADDING];
};
@@ -119,7 +120,7 @@
GstAudioAggregatorPad parent;
/*< private >*/
- GstAudioAggregatorConvertPadPrivate * priv;
+ GstAudioAggregatorConvertPadPrivate *priv;
gpointer _gst_reserved[GST_PADDING];
};
@@ -160,17 +161,17 @@
*/
struct _GstAudioAggregator
{
- GstAggregator parent;
+ GstAggregator parent;
/* All member are read only for subclasses, must hold OBJECT lock */
- GstAudioInfo info;
+ GstAudioInfo info;
- GstCaps *current_caps;
+ GstCaps *current_caps;
/*< private >*/
GstAudioAggregatorPrivate *priv;
- gpointer _gst_reserved[GST_PADDING];
+ gpointer _gst_reserved[GST_PADDING];
};
/**