HTSP server: handle correctly ssc_disabled flag in streaming start structure
This commit is contained in:
parent
74c563ffdf
commit
b47a14bd8b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue