Unref caps in HandoffCallback

This commit is contained in:
Jonas Kvinge
2020-10-22 17:49:13 +02:00
parent c5fb29f00e
commit eb1344fcec

View File

@@ -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;