DVR: Show reason code on error
This commit is contained in:
parent
88c02ef4cf
commit
a882b074dc
1 changed files with 4 additions and 1 deletions
|
@ -327,6 +327,8 @@ streaming_queue_clear(struct streaming_message_queue *q)
|
|||
const char *
|
||||
streaming_code2txt(int code)
|
||||
{
|
||||
static __thread char ret[64];
|
||||
|
||||
switch(code) {
|
||||
case SM_CODE_OK: return "OK";
|
||||
|
||||
|
@ -367,7 +369,8 @@ streaming_code2txt(int code)
|
|||
return "No input detected";
|
||||
|
||||
default:
|
||||
return "Unknown reason";
|
||||
snprintf(ret, sizeof(ret), "Unknown reason (%i)", code);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue