mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-24 06:56:26 +00:00
flacenc: set right number of channels on caps in get_caps function
This commit is contained in:
parent
ca9532ccc5
commit
9c5c33790a
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter)
|
||||||
|
|
||||||
gst_audio_channel_positions_to_mask (channel_positions[i - 1], i,
|
gst_audio_channel_positions_to_mask (channel_positions[i - 1], i,
|
||||||
&channel_mask);
|
&channel_mask);
|
||||||
gst_structure_set (s, "channels", G_TYPE_INT, 1, "channel-mask",
|
gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask",
|
||||||
GST_TYPE_BITMASK, channel_mask, NULL);
|
GST_TYPE_BITMASK, channel_mask, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue