core: fix NAStream.get_duration()