From eb1344fcec407ddb33c571934042bf030747e02a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 22 Oct 2020 17:49:13 +0200 Subject: [PATCH] Unref caps in HandoffCallback --- src/engine/gstenginepipeline.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index ee6361166..9f6ab1c61 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -561,6 +561,7 @@ GstPadProbeReturn GstEnginePipeline::HandoffCallback(GstPad *pad, GstPadProbeInf int rate = 0; gst_structure_get_int(structure, "channels", &channels); gst_structure_get_int(structure, "rate", &rate); + gst_caps_unref(caps); GstBuffer *buf = gst_pad_probe_info_get_buffer(info); GstBuffer *buf16 = nullptr;