diff --git a/lib/upipe-hls/upipe_hls_audio.c b/lib/upipe-hls/upipe_hls_audio.c index e0c2070e2..057a08ec3 100644 --- a/lib/upipe-hls/upipe_hls_audio.c +++ b/lib/upipe-hls/upipe_hls_audio.c @@ -42,6 +42,7 @@ #include "upipe/upipe_helper_urefcount_real.h" #include "upipe/upipe_helper_urefcount.h" #include "upipe/upipe_helper_upipe.h" +#include "upipe/uclock.h" #include "upipe/uprobe_select_flows.h" #include "upipe/uprobe_prefix.h" @@ -406,6 +407,7 @@ static int probe_uref(struct uprobe *uprobe, struct upipe *inner, UPROBE_LOG_VERBOSE, "ts")); upipe_mgr_release(upipe_ts_demux_mgr); UBASE_ALLOC_RETURN(output); + upipe_ts_demux_set_max_pcr_interval(upipe, 5 * UCLOCK_FREQ); upipe_release(output); break; } diff --git a/lib/upipe-hls/upipe_hls_void.c b/lib/upipe-hls/upipe_hls_void.c index fddb0aa26..7b7fbba1e 100644 --- a/lib/upipe-hls/upipe_hls_void.c +++ b/lib/upipe-hls/upipe_hls_void.c @@ -41,6 +41,7 @@ #include "upipe/upipe_helper_urefcount.h" #include "upipe/upipe_helper_upipe.h" #include "upipe/upipe.h" +#include "upipe/uclock.h" #include "upipe/uprobe_select_flows.h" #include "upipe/uprobe_prefix.h" @@ -423,6 +424,7 @@ static int probe_playlist(struct uprobe *uprobe, struct upipe *inner, UPROBE_LOG_VERBOSE, "demux")); upipe_mgr_release(upipe_ts_demux_mgr); UBASE_ALLOC_RETURN(output); + upipe_ts_demux_set_max_pcr_interval(output, UCLOCK_FREQ * 5); upipe_release(output); return UBASE_ERR_NONE; }