Skip to content

Commit

Permalink
Fix input parameteres
Browse files Browse the repository at this point in the history
  • Loading branch information
DawidWesierski4 committed Dec 27, 2024
1 parent 2056038 commit 96b1685
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ecosystem/gstreamer_plugin/gst_mtl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ gboolean gst_mtl_common_parse_audio_format(const char* format, enum st30_fmt* au
return TRUE;
}

gboolean gst_mtlst30tx_parse_sampling(gint sampling, enum st30_sampling* st_sampling) {
gboolean gst_mtl_common_parse_sampling(gint sampling, enum st30_sampling* st_sampling) {
if (!st_sampling) {
GST_ERROR("Invalid st_sampling pointer");
return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/gstreamer_plugin/gst_mtl_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ gboolean gst_mtl_common_parse_fps_code(gint fps_code, enum st_fps* fps);
gboolean gst_mtl_common_parse_pixel_format(const char* format, enum st_frame_fmt* fmt);

gboolean gst_mtl_common_parse_audio_format(const char* format, enum st30_fmt* audio);
gboolean gst_mtlst30tx_parse_sampling(gint sampling, enum st30_sampling* st_sampling);
gboolean gst_mtl_common_parse_sampling(gint sampling, enum st30_sampling* st_sampling);

#endif /* __GST_MTL_COMMON_H__ */
7 changes: 2 additions & 5 deletions ecosystem/gstreamer_plugin/gst_mtl_st30p_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static gboolean gst_mtl_st30p_rx_start(GstBaseSrc* basesrc) {
ops_rx->ptime = ST30_PTIME_1MS;
ops_rx->flags |= ST30P_RX_FLAG_BLOCK_GET;

if (!gst_mtlst30tx_parse_sampling(src->sampling, &ops_rx->sampling)) {
if (!gst_mtl_common_parse_sampling(src->sampling, &ops_rx->sampling)) {
GST_ERROR("Failed to parse ops_rx sampling %d", src->sampling);
return FALSE;
}
Expand Down Expand Up @@ -429,11 +429,8 @@ static void gst_mtl_st30p_rx_set_property(GObject* object, guint prop_id,
case PROP_RX_PORT_RX_QUEUES:
self->devArgs.rx_queues_cnt[MTL_PORT_P] = g_value_get_uint(value);
break;
case PROP_RX_FRAMERATE:
self->channel = g_value_get_uint(value);
break;
case PROP_RX_FRAMEBUFF_NUM:
self->sampling = g_value_get_uint(value);
self->framebuffer_num = g_value_get_uint(value);
break;
case PROP_RX_CHANNEL:
self->channel = g_value_get_uint(value);
Expand Down

0 comments on commit 96b1685

Please sign in to comment.