From 06647224445664907b49fbc9dcdc08bc7dbe430e Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 22 Feb 2023 18:27:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=91=BD=E4=B8=AD=E7=9A=84=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E5=8E=BB=E9=87=8D=E5=90=8E=EF=BC=8C=E8=8B=A5=E6=97=A0?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=BD=E4=B8=AD=E7=AD=96=E7=95=A5=E5=88=99?= =?UTF-8?q?=E4=B8=8D=E9=80=9A=E7=9F=A5shaping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 2 +- test/src/gtest_common.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index f64ad86..a83c5f7 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -1182,7 +1182,7 @@ static void set_shaping_result_to_project(const struct streaminfo *a_stream, str } } - if(inc_result==0) + if(inc_result_num==0) { return ; } diff --git a/test/src/gtest_common.cpp b/test/src/gtest_common.cpp index 883d5b8..6dcf036 100644 --- a/test/src/gtest_common.cpp +++ b/test/src/gtest_common.cpp @@ -108,10 +108,7 @@ int stream_bridge_register_data_free_cb(int bridge_id, stream_bridge_free_cb_t * int stream_bridge_register_data_sync_cb(int bridge_id, stream_bridge_sync_cb_t * sync_cb_fun) { - if(g_bridge_sync_cb[bridge_id]) - { - g_bridge_sync_cb[bridge_id]=sync_cb_fun; - } + g_bridge_sync_cb[bridge_id]=*(stream_bridge_sync_cb_t *)sync_cb_fun; return 0; }