set_struct_project函数允许设置NULL

This commit is contained in:
liuxueli
2021-04-29 16:27:39 +08:00
parent e4c3d1d325
commit 3210ba45f7

View File

@@ -191,7 +191,7 @@ static int set_drop_stream(const struct streaminfo *a_stream)
static int set_struct_project(const struct streaminfo *a_stream, int project_id, void *data) static int set_struct_project(const struct streaminfo *a_stream, int project_id, void *data)
{ {
if(a_stream==NULL || project_id<0 || data==NULL) if(a_stream==NULL || project_id<0)
{ {
return 0; return 0;
} }