Update misc.cpp

Fix a bug which resets all parameters to default value when writing a fec parameter to the fifo file.
This commit is contained in:
Fred Wu 2022-07-02 15:59:02 +08:00 committed by GitHub
parent 3b1b5d32d6
commit 89e7e294f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,9 +292,7 @@ int handle_command(char *s)
mylog(log_warn,"failed to parse [%s]\n",tmp_str);
return -1;
}
int version=g_fec_par.version;
g_fec_par.clone(tmp_par);
g_fec_par.version=version;
g_fec_par.clone_fec(tmp_par);
g_fec_par.version++;
strcpy(rs_par_str,tmp_str);
//g_fec_data_num=a;