summary refs log tree commit diff
path: root/src/voip/WebRTCSession.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-01-31 17:40:58 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-01-31 18:02:35 +0100
commit9f529075f0fd2889e719dcdaf4d4ca935c040c91 (patch)
treeeb8721a4b2da6d9e5f7ea8499491de350f482630 /src/voip/WebRTCSession.cpp
parentadd user search to invite dialog (#1253) (diff)
downloadnheko-9f529075f0fd2889e719dcdaf4d4ca935c040c91.tar.xz
Uncoditionally request keyframes
Diffstat (limited to 'src/voip/WebRTCSession.cpp')
-rw-r--r--src/voip/WebRTCSession.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/voip/WebRTCSession.cpp b/src/voip/WebRTCSession.cpp

index 73e71030..7760e2ea 100644 --- a/src/voip/WebRTCSession.cpp +++ b/src/voip/WebRTCSession.cpp
@@ -301,10 +301,9 @@ testPacketLoss(gpointer G_GNUC_UNUSED) void setWaitForKeyFrame(GstBin *decodebin G_GNUC_UNUSED, GstElement *element, gpointer G_GNUC_UNUSED) { - if (!std::strcmp( - gst_plugin_feature_get_name(GST_PLUGIN_FEATURE(gst_element_get_factory(element))), - "rtpvp8depay")) - g_object_set(element, "wait-for-keyframe", TRUE, nullptr); + // Unconditionally enable keyframe wait and requesting keyframes, so that we do that for + // every decode, not just vp8 decoding + g_object_set(element, "wait-for-keyframe", TRUE, "request-keyframe", TRUE, nullptr); } GstElement *