Skip to content

Commit

Permalink
Merge pull request #38 from zouxiaoh/icamerasrc_slim_api
Browse files Browse the repository at this point in the history
mtl-h pv release for kernel 6.5
  • Loading branch information
zouxiaoh authored Oct 23, 2023
2 parents 931412a + 866e079 commit 528a6f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gstcamerasrc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,7 @@ static GstPad *gst_camerasrc_request_new_pad (GstElement * element,
req_pad = GST_CAM_BASE_SRC_CLASS (parent_class)->add_video_pad(basesrc, klass, videopad, index, padname);
if (!req_pad) {
GST_ERROR("CameraId=%d failed to add video source pad.", camerasrc->device_id);
g_free(padname);
GST_CAMSRC_UNLOCK(camerasrc);
return NULL;
}
Expand Down
4 changes: 2 additions & 2 deletions src/gstcamerasrcbufferpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ gst_camerasrc_alloc_dma_export(GstCamerasrcBufferPool *pool,
return GST_FLOW_ERROR;
}

int dmafd = dup ((*meta)->buffer->dmafd);
int dmafd = (*meta)->buffer->dmafd;
if (dmafd < 0)
goto err_get_fd;

Expand Down Expand Up @@ -588,7 +588,7 @@ gst_camerasrc_alloc_dma_import(GstCamerasrcBufferPool *pool,

mem = gst_buffer_peek_memory(*alloc_buffer, 0);

(*meta)->buffer->dmafd = dup(gst_dmabuf_memory_get_fd(mem));
(*meta)->buffer->dmafd = gst_dmabuf_memory_get_fd(mem);
if ((*meta)->buffer->dmafd < 0)
goto err_get_fd;

Expand Down

0 comments on commit 528a6f1

Please sign in to comment.