picons: fix filaname calculation for West positions, fixes #2685

This commit is contained in:
Jaroslav Kysela 2015-02-18 13:07:42 +01:00
parent 051412d7e0
commit 1bd1564a8c

View file

@ -451,7 +451,8 @@ mpegts_service_channel_icon ( service_t *s )
case DVB_TYPE_S:
if ((pos = dvb_network_get_orbital_pos(mmd->mm_network)) == INT_MAX)
return NULL;
hash = (pos >= 0 ? pos : 0xFFFF - abs(pos)) << 16;
assert(pos >= -1800 && pos <= 1800);
hash = (pos >= 0 ? pos : 3600 + pos) << 16;
break;
case DVB_TYPE_C:
hash = 0xFFFF0000;