mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtpspeexpay: Do not transmitt samples with GAP flag
If we get GAP samples, there is no need to transmitt it. In some situations, microphone is muted, we can drop net traffick usage to ~1 kbit/s. Without patch it will stay ~20 kbit/s
This commit is contained in:
parent
0016ceaa2b
commit
9b15f9c6a1
1 changed files with 5 additions and 0 deletions
|
@ -260,6 +260,11 @@ gst_rtp_speex_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||
break;
|
||||
}
|
||||
|
||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_GAP)) {
|
||||
ret = GST_FLOW_OK;
|
||||
goto done;
|
||||
}
|
||||
|
||||
timestamp = GST_BUFFER_TIMESTAMP (buffer);
|
||||
duration = GST_BUFFER_DURATION (buffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue