Upgrade to bookworm (#54)

* upgrade to bookworm.

* g_memdup is deprecated: Use g_memdup2 instead.

* upgrade nvidia dockerfile.

* revert devcontainer.
This commit is contained in:
Miroslav Šedivý
2023-09-05 23:01:18 +02:00
committed by GitHub
parent 25a65863bb
commit 05403cc0c6
8 changed files with 39 additions and 81 deletions

View File

@ -151,7 +151,7 @@ void gstreamer_pipeline_destory(GstPipelineCtx *ctx) {
void gstreamer_pipeline_push(GstPipelineCtx *ctx, void *buffer, int bufferLen) {
if (ctx->appsrc != NULL) {
gpointer p = g_memdup(buffer, bufferLen);
gpointer p = g_memdup2(buffer, bufferLen);
GstBuffer *buffer = gst_buffer_new_wrapped(p, bufferLen);
gst_app_src_push_buffer(GST_APP_SRC(ctx->appsrc), buffer);
}