mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Uncoditionally request keyframes
This commit is contained in:
parent
5ed3bfc8f8
commit
9f529075f0
1 changed files with 3 additions and 4 deletions
|
@ -301,10 +301,9 @@ testPacketLoss(gpointer G_GNUC_UNUSED)
|
||||||
void
|
void
|
||||||
setWaitForKeyFrame(GstBin *decodebin G_GNUC_UNUSED, GstElement *element, gpointer G_GNUC_UNUSED)
|
setWaitForKeyFrame(GstBin *decodebin G_GNUC_UNUSED, GstElement *element, gpointer G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
if (!std::strcmp(
|
// Unconditionally enable keyframe wait and requesting keyframes, so that we do that for
|
||||||
gst_plugin_feature_get_name(GST_PLUGIN_FEATURE(gst_element_get_factory(element))),
|
// every decode, not just vp8 decoding
|
||||||
"rtpvp8depay"))
|
g_object_set(element, "wait-for-keyframe", TRUE, "request-keyframe", TRUE, nullptr);
|
||||||
g_object_set(element, "wait-for-keyframe", TRUE, nullptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GstElement *
|
GstElement *
|
||||||
|
|
Loading…
Reference in a new issue