DVR: Show reason code on error

This commit is contained in:
Andreas Öman 2010-09-17 20:24:27 +00:00
parent 88c02ef4cf
commit a882b074dc

View file

@ -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;
}
}