Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
streaming: add SMT_NOSTART_WARN for HTSP, fixes #2771
  • Loading branch information
perexg committed Sep 22, 2015
1 parent 8949199 commit 9a45923
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dvr/dvr_rec.c
Expand Up @@ -1075,6 +1075,7 @@ dvr_thread(void *aux)
break;

case SMT_GRACE:
case SMT_NOSTART_WARN:
case SMT_SPEED:
case SMT_SKIP:
case SMT_SIGNAL_STATUS:
Expand Down
1 change: 1 addition & 0 deletions src/htsp_server.c
Expand Up @@ -3798,6 +3798,7 @@ htsp_streaming_input(void *opaque, streaming_message_t *sm)
break;

case SMT_NOSTART:
case SMT_NOSTART_WARN:
htsp_subscription_status(hs, streaming_code2txt(sm->sm_code),
sm->sm_code ? _htsp_get_subscription_status(sm->sm_code) : NULL);
break;
Expand Down
2 changes: 2 additions & 0 deletions src/plumbing/globalheaders.c
Expand Up @@ -331,6 +331,7 @@ gh_hold(globalheaders_t *gh, streaming_message_t *sm)
case SMT_SERVICE_STATUS:
case SMT_SIGNAL_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_MPEGTS:
case SMT_SPEED:
case SMT_SKIP:
Expand Down Expand Up @@ -366,6 +367,7 @@ gh_pass(globalheaders_t *gh, streaming_message_t *sm)
case SMT_SERVICE_STATUS:
case SMT_SIGNAL_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_MPEGTS:
case SMT_SKIP:
case SMT_SPEED:
Expand Down
1 change: 1 addition & 0 deletions src/plumbing/transcoding.c
Expand Up @@ -1832,6 +1832,7 @@ transcoder_input(void *opaque, streaming_message_t *sm)
case SMT_SERVICE_STATUS:
case SMT_SIGNAL_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_MPEGTS:
streaming_target_deliver2(t->t_output, sm);
break;
Expand Down
1 change: 1 addition & 0 deletions src/plumbing/tsfix.c
Expand Up @@ -549,6 +549,7 @@ tsfix_input(void *opaque, streaming_message_t *sm)
case SMT_SERVICE_STATUS:
case SMT_SIGNAL_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_MPEGTS:
case SMT_SPEED:
case SMT_SKIP:
Expand Down
1 change: 1 addition & 0 deletions src/satip/rtp.c
Expand Up @@ -210,6 +210,7 @@ satip_rtp_thread(void *aux)

case SMT_START:
case SMT_STOP:
case SMT_NOSTART_WARN:
case SMT_PACKET:
case SMT_GRACE:
case SMT_SKIP:
Expand Down
2 changes: 2 additions & 0 deletions src/streaming.c
Expand Up @@ -270,6 +270,7 @@ streaming_msg_clone(streaming_message_t *src)
case SMT_STOP:
case SMT_SERVICE_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
dst->sm_code = src->sm_code;
break;

Expand Down Expand Up @@ -331,6 +332,7 @@ streaming_msg_free(streaming_message_t *sm)
case SMT_EXIT:
case SMT_SERVICE_STATUS:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_SPEED:
break;

Expand Down
2 changes: 2 additions & 0 deletions src/subscriptions.c
Expand Up @@ -366,6 +366,8 @@ subscription_reschedule(void)
s->ths_testing_error = 0;
s->ths_current_instance = NULL;
service_instance_list_clear(&s->ths_instances);
sm = streaming_msg_create_code(SMT_NOSTART_WARN, error);
streaming_target_deliver(s->ths_output, sm);
continue;
}
/* No service available */
Expand Down
1 change: 1 addition & 0 deletions src/timeshift/timeshift_reader.c
Expand Up @@ -135,6 +135,7 @@ static ssize_t _read_msg ( timeshift_file_t *tsf, int fd, streaming_message_t **
/* Unhandled */
case SMT_START:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_SERVICE_STATUS:
return -1;
break;
Expand Down
1 change: 1 addition & 0 deletions src/timeshift/timeshift_writer.c
Expand Up @@ -308,6 +308,7 @@ static void _process_msg
/* Status */
case SMT_GRACE:
case SMT_NOSTART:
case SMT_NOSTART_WARN:
case SMT_SERVICE_STATUS:
case SMT_TIMESHIFT_STATUS:
break;
Expand Down
7 changes: 7 additions & 0 deletions src/tvheadend.h
Expand Up @@ -389,6 +389,13 @@ typedef enum {
*/
SMT_NOSTART,

/**
* Streaming unable to start (non-fatal).
*
* sm_code indicates reason. Scheduler will try to restart
*/
SMT_NOSTART_WARN,

/**
* Raw MPEG TS data
*/
Expand Down
1 change: 1 addition & 0 deletions src/webui/webui.c
Expand Up @@ -425,6 +425,7 @@ http_stream_run(http_connection_t *hc, profile_chain_t *prch,
}
break;

case SMT_NOSTART_WARN:
case SMT_SKIP:
case SMT_SPEED:
case SMT_SIGNAL_STATUS:
Expand Down

0 comments on commit 9a45923

Please sign in to comment.