View Single Post
Old 9th January 2021, 16:07   #17
ariszlo
Major Dude
 
Join Date: Jun 2015
Location: Hungary
Posts: 608
Animated Seekers

Old skins with animated seekers may crash Winamp if you switch to them while listening to an online stream.

The culprits are the maki scripts that calculate the position of the seeker by dividing the time left since the beginning of the track by the length of the track. Unfortunately, Winamp does not retrieve those data from online streams, which causes a division by zero error.

The solution is to replace each occurrence of this string:
code:
System.getPlayItemLength()

with this in the maki scripts:
code:
(System.getPlayItemLength()+0.001)

Pay attention to the parentheses.

The attached dominator-seekbyregion.zip contains the fixed scripts for the Dominator skin.
Attached Files
File Type: zip dominator-seekbyregion.zip (6.8 KB, 94 views)
ariszlo is online now   Reply With Quote