const unsigned int chunk_sample_count =
DecodeChunkLength / snapshot->unit_size();
+ // Clear error message upon every new session run
+ _error_message = QString();
+
// Create the session
srd_session_new(&session);
assert(session);
if (!di)
{
- _error_message = tr("Failed to initialise decoder");
+ _error_message = tr("Failed to create decoder instance");
srd_session_destroy(session);
return;
}
if (srd_session_send(session, i, i + sample_count,
chunk, chunk_end - i) != SRD_OK) {
- _error_message = tr("Failed to initialise decoder");
+ _error_message = tr("Decoder reported an error");
break;
}