deinterleave: output channels should be marked as MONO, not FRONT_LEFT, if

we're not preserving input channel positions.
This commit is contained in:
Michael Smith 2012-10-05 15:12:27 -07:00
parent 7522cd1595
commit 7aed5a4b4b

View file

@ -229,7 +229,7 @@ gst_deinterleave_add_new_pads (GstDeinterleave * self, GstCaps * caps)
GstAudioInfo info; GstAudioInfo info;
GstAudioFormat format = GST_AUDIO_INFO_FORMAT (&self->audio_info); GstAudioFormat format = GST_AUDIO_INFO_FORMAT (&self->audio_info);
gint rate = GST_AUDIO_INFO_RATE (&self->audio_info); gint rate = GST_AUDIO_INFO_RATE (&self->audio_info);
GstAudioChannelPosition position = 0; GstAudioChannelPosition position = GST_AUDIO_CHANNEL_POSITION_MONO;
/* Set channel position if we know it */ /* Set channel position if we know it */
if (self->keep_positions) if (self->keep_positions)