Unref caps in HandoffCallback
This commit is contained in:
@@ -561,6 +561,7 @@ GstPadProbeReturn GstEnginePipeline::HandoffCallback(GstPad *pad, GstPadProbeInf
|
|||||||
int rate = 0;
|
int rate = 0;
|
||||||
gst_structure_get_int(structure, "channels", &channels);
|
gst_structure_get_int(structure, "channels", &channels);
|
||||||
gst_structure_get_int(structure, "rate", &rate);
|
gst_structure_get_int(structure, "rate", &rate);
|
||||||
|
gst_caps_unref(caps);
|
||||||
|
|
||||||
GstBuffer *buf = gst_pad_probe_info_get_buffer(info);
|
GstBuffer *buf = gst_pad_probe_info_get_buffer(info);
|
||||||
GstBuffer *buf16 = nullptr;
|
GstBuffer *buf16 = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user