Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add streaming error for active recordings
  • Loading branch information
Glenn-1990 authored and perexg committed Mar 9, 2015
1 parent a69ee15 commit 81ae6bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dvr/dvr_rec.c
Expand Up @@ -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);
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/htsp_server.c
Expand Up @@ -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:
Expand Down

0 comments on commit 81ae6bf

Please sign in to comment.