HaikuArchives / StreamRadio

Haiku-native application to search for and listen to internet radio stations.
8 stars 11 forks source link

Fixes to compile against the new libnetapi.so, radio search functionality restored, crashes fixed #39

Closed jsteinaker closed 2 years ago

jsteinaker commented 3 years ago

The network API has changed a couple of weeks ago. As a result, StreamRadio wasn't compiling anymore, at least on hrev54958, These changes allow StreamRadio to compile again, and, as a bonus, restore the radio search functionality that we missed at some point (using the package from Haiku Depot on hrev54598, at least).

While testing the app, I've discovered that it had a crash every time it tried to download a non-existent icon. The minor fix just checks if the BString that holds the icon URL is empty before proceeding with the download.

I've just realized that there's another PR waiting to be merged, but it seems that we didn't duplicate efforts and that one addresses different problems.