-
- py_samplerate = PyTuple_GetItem(py_logic_out_ch, 2);
- if (!py_samplerate)
- goto except_out;
-
- if (!PyLong_Check(py_samplerate)) {
- srd_err("Protocol decoder %s logic_output_channels tuples "
- "must have a number as 3rd element.",
- dec->name);
- goto err_out;
- }
-
- logic_out_ch->samplerate = PyLong_AsUnsignedLongLong(py_samplerate);