Fix donar ?!
This commit is contained in:
parent
f2b7f768dd
commit
4617e03019
2 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,7 @@ int create_rx_chain(struct dcall_elements* de) {
|
||||||
g_object_set(G_OBJECT (de->rx_jitterbuffer), "do-lost", TRUE, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "do-lost", TRUE, NULL);
|
||||||
g_object_set(G_OBJECT (de->rx_jitterbuffer), "do-retransmission", FALSE, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "do-retransmission", FALSE, NULL);
|
||||||
g_object_set(G_OBJECT (de->rx_jitterbuffer), "latency", 100, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "latency", 100, NULL);
|
||||||
g_object_set(G_OBJECT (de->rx_jitterbuffer), "drop-on-latency", TRUE, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "drop-on-latency", FALSE, NULL);
|
||||||
//g_object_set(G_OBJECT (de->rx_jitterbuffer), "post-drop-messages", TRUE, NULL);
|
//g_object_set(G_OBJECT (de->rx_jitterbuffer), "post-drop-messages", TRUE, NULL);
|
||||||
|
|
||||||
g_object_set(G_OBJECT (de->rx_opusdec), "plc", TRUE, NULL);
|
g_object_set(G_OBJECT (de->rx_opusdec), "plc", TRUE, NULL);
|
||||||
|
|
|
@ -61,6 +61,7 @@ int main_on_tcp_read(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
||||||
|
|
||||||
co_error:
|
co_error:
|
||||||
perror("Failed to TCP read");
|
perror("Failed to TCP read");
|
||||||
|
mv_buffer_rtof (&app_ctx->br, fdinfo);
|
||||||
evt_core_rm_fd (ctx, fdinfo->fd);
|
evt_core_rm_fd (ctx, fdinfo->fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -88,6 +89,7 @@ int main_on_udp_read(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
||||||
|
|
||||||
co_error:
|
co_error:
|
||||||
perror("Failed to UDP read");
|
perror("Failed to UDP read");
|
||||||
|
mv_buffer_rtof (&app_ctx->br, fdinfo);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,6 +128,7 @@ free_buffer:
|
||||||
return 0;
|
return 0;
|
||||||
co_error:
|
co_error:
|
||||||
perror("Failed to TCP write");
|
perror("Failed to TCP write");
|
||||||
|
mv_buffer_wtof (&app_ctx->br, fdinfo);
|
||||||
evt_core_rm_fd (ctx, fdinfo->fd);
|
evt_core_rm_fd (ctx, fdinfo->fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -159,6 +162,7 @@ int main_on_udp_write (struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo)
|
||||||
return 0;
|
return 0;
|
||||||
co_error:
|
co_error:
|
||||||
perror("Failed to UDP write");
|
perror("Failed to UDP write");
|
||||||
|
mv_buffer_wtof (&app_ctx->br, fdinfo);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue