Fix order bug

This commit is contained in:
Quentin 2020-01-29 11:46:21 +01:00
parent dcf24faf90
commit afd9192895

View file

@ -42,7 +42,7 @@ int create_rx_chain(struct dcall_elements* de) {
g_object_set(G_OBJECT (de->rx_opusdec), "use-inband-fec", FALSE, NULL);
GstStructure *props;
props = gst_structure_from_string ("props,filter.want=echo-cancel", NULL);
props = gst_structure_from_string ("props,want=echo-cancel", NULL);
g_object_set (de->rx_sink, "stream-properties", props, NULL);
gst_structure_free (props);
@ -91,7 +91,7 @@ int create_tx_chain(struct dcall_elements* de) {
gst_structure_free (props);
gst_bin_add_many(GST_BIN(de->pipeline), de->tx_tap, de->tx_echocancel, de->tx_queue, de->tx_resample, de->tx_opusenc, de->tx_pay, de->tx_sink, NULL);
gst_element_link_many(de->tx_resample, de->tx_tap, de->tx_echocancel, de->tx_queue, de->tx_opusenc, de->tx_pay, de->tx_sink, NULL);
gst_element_link_many( de->tx_tap, de->tx_resample, de->tx_echocancel, de->tx_queue, de->tx_opusenc, de->tx_pay, de->tx_sink, NULL);
return 0;
}