From 51e8285d010b9b1063681f538795f3f7d7686398 Mon Sep 17 00:00:00 2001 From: Chen Wu Date: Mon, 22 Apr 2024 20:36:28 +0800 Subject: [PATCH] fix: Fix python binding --- binding/python/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/python/src/main.cpp b/binding/python/src/main.cpp index 3472356..ac1ac38 100644 --- a/binding/python/src/main.cpp +++ b/binding/python/src/main.cpp @@ -42,7 +42,7 @@ void py_callback(int event, void* data, void* user_data) { g_callbacks[(crp_handle) user_data](event, obj); } else if (event == CRP_EV_NEW_AUDIO) { Frame* frame = (Frame*) data; - py::object frame = py::dict(); + py::object obj = py::dict(); obj["sample_rate"] = frame->sample_rate; obj["channels"] = frame->channels; obj["format"] = frame->format;