Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tsfix, htsp: wait only for first video stream
  • Loading branch information
perexg committed Dec 8, 2014
1 parent 8668734 commit 0e8647a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/htsp_server.c
Expand Up @@ -3056,6 +3056,7 @@ htsp_subscription_start(htsp_subscription_t *hs, const streaming_start_t *ss)
hs->hs_wait_for_video = 1;
return;
}
break;
}
}
hs->hs_wait_for_video = 0;
Expand Down
5 changes: 3 additions & 2 deletions src/plumbing/tsfix.c
Expand Up @@ -144,9 +144,10 @@ tsfix_start(tsfix_t *tf, streaming_start_t *ss)
const streaming_start_component_t *ssc = &ss->ss_components[i];
tsfix_add_stream(tf, ssc->ssc_index, ssc->ssc_type);
if (SCT_ISVIDEO(ssc->ssc_type)) {
hasvideo = 1;
if (ssc->ssc_width == 0 || ssc->ssc_height == 0)
vwait = 1;
/* only first video stream may be valid */
vwait = !hasvideo ? 1 : 0;
hasvideo = 1;
}
}

Expand Down

0 comments on commit 0e8647a

Please sign in to comment.