Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTSP server: handle correctly ssc_disabled flag in streaming start st…
…ructure
  • Loading branch information
perexg committed Dec 24, 2014
1 parent 74c563f commit b47a14b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/htsp_server.c
Expand Up @@ -3099,6 +3099,7 @@ htsp_subscription_start(htsp_subscription_t *hs, const streaming_start_t *ss)

for(i = 0; i < ss->ss_num_components; i++) {
const streaming_start_component_t *ssc = &ss->ss_components[i];
if (ssc->ssc_disabled) continue;
if (SCT_ISVIDEO(ssc->ssc_type)) {
if (ssc->ssc_width == 0 || ssc->ssc_height == 0) {
hs->hs_wait_for_video = 1;
Expand All @@ -3114,6 +3115,7 @@ htsp_subscription_start(htsp_subscription_t *hs, const streaming_start_t *ss)
sourceinfo = htsmsg_create_map();
for(i = 0; i < ss->ss_num_components; i++) {
const streaming_start_component_t *ssc = &ss->ss_components[i];
if(ssc->ssc_disabled) continue;

c = htsmsg_create_map();
htsmsg_add_u32(c, "index", ssc->ssc_index);
Expand Down

0 comments on commit b47a14b

Please sign in to comment.