mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
flacdec: Use new channel count for audio info
This commit is contained in:
parent
d74f964407
commit
88a6832b2a
1 changed files with 2 additions and 4 deletions
|
@ -633,10 +633,8 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
|
|||
GST_DEBUG_OBJECT (flacdec, "Negotiating %d Hz @ %d channels", sample_rate,
|
||||
channels);
|
||||
|
||||
memcpy (chanpos, channel_positions[flacdec->info.channels - 1],
|
||||
sizeof (chanpos));
|
||||
gst_audio_channel_positions_to_valid_order (chanpos,
|
||||
flacdec->info.channels);
|
||||
memcpy (chanpos, channel_positions[channels - 1], sizeof (chanpos));
|
||||
gst_audio_channel_positions_to_valid_order (chanpos, channels);
|
||||
gst_audio_info_set_format (&flacdec->info,
|
||||
gst_audio_format_build_integer (TRUE, G_BYTE_ORDER, width, gdepth),
|
||||
sample_rate, channels, chanpos);
|
||||
|
|
Loading…
Reference in a new issue