If I am reading the code correctly, it looks like the MSTPD algorithm is never downsampling the signal, irrespective of the input sampling frequency, as the variable do_ds is fixed to 0 before being tested see here, this part of the code is apparently never executed.