drop on latency, latency 100ms
This commit is contained in:
parent
cd03566bb9
commit
f2b7f768dd
1 changed files with 6 additions and 5 deletions
11
src/dcall.c
11
src/dcall.c
|
@ -34,8 +34,8 @@ 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", 50, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "latency", 100, NULL);
|
||||||
g_object_set(G_OBJECT (de->rx_jitterbuffer), "drop-on-latency", FALSE, NULL);
|
g_object_set(G_OBJECT (de->rx_jitterbuffer), "drop-on-latency", TRUE, 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);
|
||||||
|
@ -150,11 +150,12 @@ static GstPadProbeReturn extract_buffer(GstPad *pad, GstPadProbeInfo *info, gpoi
|
||||||
out = gst_pad_probe_info_get_buffer (info);
|
out = gst_pad_probe_info_get_buffer (info);
|
||||||
if (out == NULL) {
|
if (out == NULL) {
|
||||||
g_print("Empty buffer \n");
|
g_print("Empty buffer \n");
|
||||||
} else {
|
return GST_PAD_PROBE_OK;
|
||||||
//g_print("Buffer of size %ld\n", gst_buffer_get_size (out));
|
|
||||||
}
|
}
|
||||||
return GST_PAD_PROBE_OK;
|
|
||||||
|
|
||||||
|
if (GST_BUFFER_FLAG_IS_SET (out, GST_BUFFER_FLAG_DISCONT)) {
|
||||||
|
g_print("Discontinuous buffer\n");
|
||||||
|
}
|
||||||
//gst_buffer_map (out, &map, GST_MAP_READ);
|
//gst_buffer_map (out, &map, GST_MAP_READ);
|
||||||
|
|
||||||
//if (gst_buffer_get_size (out) != 172) g_print("buffer size is %ld\n", gst_buffer_get_size (out));
|
//if (gst_buffer_get_size (out) != 172) g_print("buffer size is %ld\n", gst_buffer_get_size (out));
|
||||||
|
|
Loading…
Reference in a new issue