From: Anssi Hannula Date: Sat, 11 May 2019 22:56:48 +0000 (+0300) Subject: en50221: fix menu text decoding X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=466a0143195a0a0f15c58d4bbd93c57b13caaccd;p=thirdparty%2Ftvheadend.git en50221: fix menu text decoding getmenutext() checks that dvb_get_string() returns greater than 0, but that function returns 0 on success. This causes menu text decoding to always fail, resulting in no menu texts. Fix the check to match dvb_get_string() behavior. --- diff --git a/src/input/mpegts/en50221/en50221_apps.c b/src/input/mpegts/en50221/en50221_apps.c index e89d8fcf7..7509a03b7 100644 --- a/src/input/mpegts/en50221/en50221_apps.c +++ b/src/input/mpegts/en50221/en50221_apps.c @@ -496,7 +496,7 @@ getmenutext return r; if (l2 > 0) { txt = alloca(l2 * 2 + 1); - if (dvb_get_string(txt, l2 * 2 + 1, p2, l2, NULL, NULL) > 0 && txt[0]) { + if (dvb_get_string(txt, l2 * 2 + 1, p2, l2, NULL, NULL) == 0 && txt[0]) { if (list) { c = htsmsg_get_list(app->cia_menu, key); if (c == NULL) {