In what cases this code may crash, what's wrong? On my system this code works properly, but there is bugreports...
CODE
virtual void on_playback_new_track(metadb_handle * track){
   double length = 0;
   if(track)
       length = track->handle_get_length();
}