Skip to content

Commit

Permalink
Merge pull request #663 from ace20022/ace20022-patch-1
Browse files Browse the repository at this point in the history
Predictive tuning: Fix crash because of an invalid comparator
  • Loading branch information
ksooo authored Apr 24, 2024
2 parents 3977d8f + 4907cec commit 6c5564f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
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="21.2.2"
version="21.2.3"
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 @@
v21.2.3
- Predictive tuning: Fix crash while sorting channels.

v21.2.2
- Translations updates from Weblate
- af_za, am_et, ar_sa, ast_es, 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
3 changes: 3 additions & 0 deletions src/tvheadend/ChannelTuningPredictor.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ struct SortChannelPair
{
if (left.second < right.second)
return true;

if (right.second < left.second)
return false;

// if channel numbers are equal, consider channel id (which is unique)
return left.first < right.first;
Expand Down

0 comments on commit 6c5564f

Please sign in to comment.