Skip to content

Commit

Permalink
upipe-hls: increase PCRs interval tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
quarium committed Aug 22, 2024
1 parent 205ae75 commit fb20caf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/upipe-hls/upipe_hls_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions lib/upipe-hls/upipe_hls_void.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fb20caf

Please sign in to comment.