Код: Выделить всё
static GstPadProbeReturn on_probe(
GstPad *pad, GstPadProbeInfo *info, gpointer user_data
) {
GstBuffer *buffer = GST_PAD_PROBE_INFO_BUFFER(info);
GstMapInfo map;
FrameInfo *fr = static_cast(user_data);
std::ostringstream file_name;
file_name
Подробнее здесь: [url]https://stackoverflow.com/questions/79307142/segmentation-fault-when-trying-to-copy-memory-from-gst-buffer-to-torch-tensor-us[/url]
Мобильная версия