Skip to content

Commit

Permalink
Merge pull request #515 from ksooo/8-3-2
Browse files Browse the repository at this point in the history
8.3.2: Demuxer: Only restart connection when not paused
  • Loading branch information
ksooo authored Jul 6, 2021
2 parents 09a4cc4 + cbf639f commit 261638f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pvr.hts/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hts"
version="8.3.1"
version="8.3.2"
name="Tvheadend HTSP Client"
provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions pvr.hts/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v8.3.2
- Fixed: Timeshift issues after pausing and resuming Live TV (affects only demuxer-served channels).

v8.3.1
- Translations updates from Weblate
- af_za, am_et, ar_sa, az_az, be_by, bg_bg, bs_ba, ca_es, cs_cz, cy_gb, da_dk, de_de, el_gr, en_au, en_nz, en_us, eo, es_ar, es_es, es_mx, et_ee, eu_es, fa_af, fa_ir, fi_fi, fo_fo, fr_ca, fr_fr, gl_es, he_il, hi_in, hr_hr, hu_hu, hy_am, id_id, is_is, it_it, ja_jp, ko_kr, lt_lt, lv_lv, mi, mk_mk, ml_in, mn_mn, ms_my, mt_mt, my_mm, nb_no, nl_nl, pl_pl, pt_br, pt_pt, ro_ro, ru_ru, si_lk, sk_sk, sl_si, sq_al, sr_rs, sr_rs@latin, sv_se, szl, ta_in, te_in, tg_tj, th_th, tr_tr, uk_ua, uz_uz, vi_vn, zh_cn, zh_tw
Expand Down
9 changes: 6 additions & 3 deletions src/tvheadend/HTSPDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ DEMUX_PACKET* HTSPDemuxer::Read()
}
Logger::Log(LogLevel::LEVEL_TRACE, "demux read nothing");

if (m_lastPkt > 0 && m_lastUse - m_lastPkt > 10)
if (m_lastPkt > 0 && m_lastUse - m_lastPkt > 10 && !IsPaused())
{
Logger::Log(LogLevel::LEVEL_WARNING,
"demux read no data for at least 10 secs; restarting connection");
Expand Down Expand Up @@ -256,7 +256,10 @@ void HTSPDemuxer::Speed(int speed)
return;

if (speed != 0)
speed = 1000;
{
speed = SPEED_NORMAL;
m_lastPkt = 0;
}

if ((speed != m_requestedSpeed || speed == 0) && m_actualSpeed == m_subscription.GetSpeed())
{
Expand All @@ -273,7 +276,7 @@ void HTSPDemuxer::FillBuffer(bool mode)
if (!m_subscription.IsActive())
return;

int speed = (!mode || IsRealTimeStream()) ? 1000 : 4000;
int speed = (!mode || IsRealTimeStream()) ? SPEED_NORMAL : 4 * SPEED_NORMAL;

if (speed != m_requestedSpeed && m_actualSpeed == m_subscription.GetSpeed())
{
Expand Down

0 comments on commit 261638f

Please sign in to comment.