mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-07 06:35:15 +01:00
Nicer 'if' block for setting monoplayback
This commit is contained in:
parent
4caa3fc17e
commit
7f56833125
@ -333,8 +333,10 @@ bool GstEnginePipeline::Init() {
|
|||||||
NULL);
|
NULL);
|
||||||
GstCaps* caps32 = gst_caps_new_simple ("audio/x-raw-float",
|
GstCaps* caps32 = gst_caps_new_simple ("audio/x-raw-float",
|
||||||
"width", G_TYPE_INT, 32,
|
"width", G_TYPE_INT, 32,
|
||||||
!mono_playback_ ? NULL : "channels", G_TYPE_INT, 1,
|
|
||||||
NULL);
|
NULL);
|
||||||
|
if (mono_playback_) {
|
||||||
|
gst_caps_set_simple(caps32, "channels", G_TYPE_INT, 1, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
// Link the elements with special caps
|
// Link the elements with special caps
|
||||||
gst_element_link_filtered(probe_converter, probe_sink, caps16);
|
gst_element_link_filtered(probe_converter, probe_sink, caps16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user