* [TensorMerge] Fix gst_buffer_unref error
Fix gst_buffer_unref bug.
If this call exist, pad->buffer will be invalid.
Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
} else {
gst_buffer_unref (buf);
buf = gst_collect_pads_pop (tensor_merge->collect, data);
+ if (pad->buffer != NULL)
+ gst_buffer_unref (pad->buffer);
+ pad->buffer = buf;
}
} else {
buf = pad->buffer;
*dts_time = bestpad->dts_timestamp;
}
- gst_buffer_unref (buf);
tensor_merge->tensors_config.info.info[counting] = config.info;
counting++;
}