add streaming error for active recordings

This commit is contained in:
Glenn-1990 2015-03-05 12:26:51 +01:00 committed by Jaroslav Kysela
parent a69ee153d0
commit 81ae6bf0cd
2 changed files with 3 additions and 1 deletions

View file

@ -318,6 +318,7 @@ dvr_notify(dvr_entry_t *de, int now)
if (now || de->de_last_notify + 5 < dispatch_clock) {
idnode_notify_simple(&de->de_id);
de->de_last_notify = dispatch_clock;
htsp_dvr_entry_update(de);
}
}

View file

@ -710,7 +710,8 @@ htsp_build_dvrentry(dvr_entry_t *de, const char *method)
break;
case DVR_RECORDING:
s = "recording";
if (de->de_rec_state == DVR_RS_ERROR)
if (de->de_rec_state == DVR_RS_ERROR ||
(de->de_rec_state == DVR_RS_PENDING && de->de_last_error != SM_CODE_OK))
error = streaming_code2txt(de->de_last_error);
break;
case DVR_COMPLETED: