We present a new derivation of the proton-electron mass ratio from the hydrogen molecular ion, HD$^+$. The derivation entails the adjustment of the mass ratio in highly precise theory so as to reproduce accurately measured ro-vibrational frequencies. This work is motivated by recent improvements of the theory, as well as the more accurate value of the electron mass in the recently published CODATA-14 set of fundamental constants, which justifies using it as input data in the adjustment, rather than the proton mass value as done in previous works. This leads to significantly different sensitivity coefficients and, consequently, a different value and larger uncertainty margin of the proton-electron mass ratio as obtained from HD$^+$.