Fix infinite loop when loading codec speex