diff --git a/subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c b/subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c index f89ab28f4f..9019bf863a 100644 --- a/subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c +++ b/subprojects/gst-plugins-bad/ext/onnx/decoders/gstssdobjectdetector.c @@ -357,7 +357,7 @@ gst_ssd_object_detector_transform_ip (GstBaseTransform * trans, GstBuffer * buf) get_ ## TYPE ## _at_index (GstTensor *tensor, GstMapInfo *map, \ guint index, TYPE * out) \ { \ - switch (tensor->type) { \ + switch (tensor->data_type) { \ case GST_TENSOR_TYPE_FLOAT32: { \ float *f = (float *) map->data; \ if (sizeof(*f) * (index + 1) > map->size) \ diff --git a/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp b/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp index ba5ae83ca5..982667ab7b 100644 --- a/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp +++ b/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp @@ -362,7 +362,7 @@ GstOnnxClient::GstOnnxClient (GstElement *debug_parent):debug_parent(debug_paren tensor->data = gst_buffer_new_allocate (NULL, buffer_size, NULL); gst_buffer_fill (tensor->data, 0, outputTensor.GetTensorData < float >(), buffer_size); - tensor->type = GST_TENSOR_TYPE_FLOAT32; + tensor->data_type = GST_TENSOR_TYPE_FLOAT32; } else if (tensorType == ONNX_TENSOR_ELEMENT_DATA_TYPE_INT32) { size_t buffer_size = 0; @@ -370,7 +370,7 @@ GstOnnxClient::GstOnnxClient (GstElement *debug_parent):debug_parent(debug_paren tensor->data = gst_buffer_new_allocate (NULL, buffer_size, NULL); gst_buffer_fill (tensor->data, 0, outputTensor.GetTensorData < float >(), buffer_size); - tensor->type = GST_TENSOR_TYPE_INT32; + tensor->data_type = GST_TENSOR_TYPE_INT32; } else { GST_ERROR_OBJECT (debug_parent, "Output tensor is not FLOAT32 or INT32, not supported"); gst_buffer_remove_meta (buffer, (GstMeta*) tmeta);