mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
pulsesrc: Remove redundant channel-mask setting for stereo case
The gstaudio helper libraries already take care of this case for us.
This commit is contained in:
parent
fe83843abe
commit
e317d88eaa
1 changed files with 0 additions and 3 deletions
|
@ -1152,9 +1152,6 @@ gst_pulsesrc_create_stream (GstPulseSrc * pulsesrc, GstCaps ** caps)
|
||||||
if (spec.info.channels == 1) {
|
if (spec.info.channels == 1) {
|
||||||
pa_channel_map_init_mono (&channel_map);
|
pa_channel_map_init_mono (&channel_map);
|
||||||
} else if (spec.info.channels == 2) {
|
} else if (spec.info.channels == 2) {
|
||||||
gst_structure_set (s, "channel-mask", GST_TYPE_BITMASK,
|
|
||||||
GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_LEFT) |
|
|
||||||
GST_AUDIO_CHANNEL_POSITION_MASK (FRONT_RIGHT), NULL);
|
|
||||||
pa_channel_map_init_stereo (&channel_map);
|
pa_channel_map_init_stereo (&channel_map);
|
||||||
} else {
|
} else {
|
||||||
need_channel_layout = TRUE;
|
need_channel_layout = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue