AdamAtomic/flixel — Issue #198: Crash when Streaming MP3s with no ID3 info for Artist or Song Name
Author: snotwadd20
Created: 2011-10-29 06:50:54+00:00
State: open

In dev, whenever I try to stream an ID3 that doesn't have info for Artist or Song Name I get a crash. I fixed it with this, in case that helps:

In FlxSound:

protected function gotID3(event:Event=null):void
{
FlxG.log("got ID3 info!");
if(_sound.id3.songName != null && _sound.id3.songName.length > 0)
name = _sound.id3.songName;
if(_sound.id3.artist != null && _sound.id3.artist.length > 0)
artist = _sound.id3.artist;
_sound.removeEventListener(Event.ID3, gotID3);
}