Skip to content

Commit 6800921

Browse files
committed
enhancement #23: reduce jitterbuffer
1 parent 20242ac commit 6800921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/src/GstAVPipeline.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void GstAVPipeline::on_pad_added(GstElement* src, GstPad* new_pad, gpointer data
435435
void GstAVPipeline::webrtcbin_ready(GstElement* self, gchararray peer_id, GstElement* webrtcbin, gpointer udata)
436436
{
437437
Debug::Log("Configure webrtcbin", Level::Info);
438-
g_object_set(webrtcbin, "latency", 10, nullptr);
438+
g_object_set(webrtcbin, "latency", 1, nullptr);
439439
}
440440

441441
void GstAVPipeline::ReleaseTexture(ID3D11Texture2D* texture)
@@ -545,8 +545,8 @@ void GstAVPipeline::CreateDevice()
545545
auto luid = gst_d3d11_luid_to_int64(&adapter_desc.AdapterLuid);
546546

547547
/* This device will be used by our pipeline */
548-
_device =
549-
gst_d3d11_device_new_for_adapter_luid(luid, D3D11_CREATE_DEVICE_BGRA_SUPPORT /* | D3D11_CREATE_DEVICE_DEBUG*/);
548+
_device = gst_d3d11_device_new_for_adapter_luid(
549+
luid, D3D11_CREATE_DEVICE_BGRA_SUPPORT /* | D3D11_CREATE_DEVICE_DEBUG*/);
550550
g_assert(_device);
551551
}
552552
else

0 commit comments

Comments
 (0)