2
0
forked from Ivasoft/DSView

update: The acquisition stops halfway and the decoding continues

This commit is contained in:
dreamsourcelabTAI
2022-04-29 18:37:40 +08:00
parent c3ab42fcf5
commit 041f8eb071
7 changed files with 24 additions and 10 deletions

View File

@@ -1229,8 +1229,9 @@ SRD_PRIV int srd_inst_decode(struct srd_decoder_inst *di,
if (!di->thread_handle) {
srd_dbg("No worker thread for this decoder stack "
"exists yet, creating one: %s.", di->inst_id);
di->thread_handle = g_thread_new(di->inst_id,
di_thread, di);
di_thread, di);
}
/* Push the new sample chunk to the worker thread. */

View File

@@ -349,7 +349,7 @@ struct srd_proto_data {
uint64_t start_sample;
uint64_t end_sample;
struct srd_pd_output *pdo;
void *data;
void *data;
};
struct srd_proto_data_annotation {
int ann_class;

View File

@@ -463,7 +463,7 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args)
uint64_t start_sample, end_sample;
int output_id;
struct srd_pd_callback *cb;
PyGILState_STATE gstate;
PyGILState_STATE gstate;
py_data = NULL; //the fourth param from python