info->position[i] = g_value_get_enum (pos_val_entry);
}
} else {
- info->flags |= GST_AUDIO_FLAG_UNPOSITIONED;
+ info->flags |= GST_AUDIO_FLAG_DEFAULT_POSITIONS;
+ /* FIXME, set default positions */
}
return TRUE;
/**
* GstAudioFlags:
* @GST_AUDIO_FLAG_NONE: no valid flag
- * @GST_AUDIO_FLAG_UNPOSITIONED: unpositioned audio layout, position array
- * contains the default layout.
+ * @GST_AUDIO_FLAG_DEFAULT_POSITIONS: position array
+ * contains the default layout for the number of channels.
*
* Extra audio flags
*/
typedef enum {
- GST_AUDIO_FLAG_NONE = 0,
- GST_AUDIO_FLAG_UNPOSITIONED = (1 << 0)
+ GST_AUDIO_FLAG_NONE = 0,
+ GST_AUDIO_FLAG_DEFAULT_POSITIONS = (1 << 0)
} GstAudioFlags;
/**
#define GST_AUDIO_INFO_BPS(info) (GST_AUDIO_INFO_DEPTH(info) >> 3)
#define GST_AUDIO_INFO_FLAGS(info) ((info)->flags)
-#define GST_AUDIO_INFO_IS_UNPOSITIONED(info) ((info)->flags & GST_AUDIO_FLAG_UNPOSITIONED)
+#define GST_AUDIO_INFO_HAS_DEFAULT_POSITIONS(info) ((info)->flags & GST_AUDIO_FLAG_DEFAULT_POSITIONS)
#define GST_AUDIO_INFO_RATE(info) ((info)->rate)
#define GST_AUDIO_INFO_CHANNELS(info) ((info)->channels)
/* first clean the existing context */
audio_convert_clean_context (ctx);
- g_return_val_if_fail (GST_AUDIO_INFO_IS_UNPOSITIONED (in) ==
- GST_AUDIO_INFO_IS_UNPOSITIONED (out), FALSE);
-
ctx->in = *in;
ctx->out = *out;
gst_channel_mix_fill_identical (this);
- if (!GST_AUDIO_INFO_IS_UNPOSITIONED (&this->in)) {
+ if (!GST_AUDIO_INFO_HAS_DEFAULT_POSITIONS (&this->in)) {
gst_channel_mix_fill_compatible (this);
gst_channel_mix_fill_others (this);
gst_channel_mix_fill_normalize (this);