Extended getTracks() to work also with ISurfaces objects.