summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-02-28 15:22:38 +0200
committerSebastian Dröge <sebastian@centricular.com>2018-02-28 15:23:25 +0200
commitfae7f790be0b3ae61800712b496e2870c6c5f06f (patch)
tree67c2cd3be2da744a8866a230d906261419307702
parent103b0110265d1022dc09cd99f2fdea0ed5d366c4 (diff)
audioaggregator: Document that the pad's audio info is read-only and needs the object lock
Also fix indentation in the header a bit.
-rw-r--r--gst-libs/gst/audio/gstaudioaggregator.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gst-libs/gst/audio/gstaudioaggregator.h b/gst-libs/gst/audio/gstaudioaggregator.h
index 9cd66d328..a60898350 100644
--- a/gst-libs/gst/audio/gstaudioaggregator.h
+++ b/gst-libs/gst/audio/gstaudioaggregator.h
@@ -68,10 +68,11 @@ struct _GstAudioAggregatorPad
{
GstAggregatorPad parent;
+ /* read-only, with OBJECT_LOCK */
GstAudioInfo info;
/*< private >*/
- GstAudioAggregatorPadPrivate * priv;
+ GstAudioAggregatorPadPrivate *priv;
gpointer _gst_reserved[GST_PADDING];
};
@@ -119,7 +120,7 @@ struct _GstAudioAggregatorConvertPad
GstAudioAggregatorPad parent;
/*< private >*/
- GstAudioAggregatorConvertPadPrivate * priv;
+ GstAudioAggregatorConvertPadPrivate *priv;
gpointer _gst_reserved[GST_PADDING];
};
@@ -160,17 +161,17 @@ GType gst_audio_aggregator_convert_pad_get_type (void);
*/
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];
};
/**