Skip to content

Commit

Permalink
picons: fix filaname calculation for West positions, fixes #2685
Browse files Browse the repository at this point in the history
  • Loading branch information
perexg committed Feb 18, 2015
1 parent 051412d commit b30f05b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/mpegts_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b30f05b

Please sign in to comment.