Only check the sample rate for a match when the output type changes

This fixes changing the input to another sample rate in some situations.