HTSP server: add stream and data errors to DVR entry, fixes #2515

This commit is contained in:
Jaroslav Kysela 2015-02-18 19:55:17 +01:00
parent ba7ec12f91
commit a50f74c9aa

View file

@ -731,6 +731,10 @@ htsp_build_dvrentry(dvr_entry_t *de, const char *method)
htsmsg_add_str(out, "state", s);
if(error)
htsmsg_add_str(out, "error", error);
if (de->de_errors)
htsmsg_add_u32(out, "streamErrors", de->de_errors);
if (de->de_data_errors)
htsmsg_add_u32(out, "dataErrors", de->de_data_errors);
htsmsg_add_str(out, "method", method);
return out;
}