Can someone tell me why he wrote m_dot*Q_out ? the equation given is P=m(h_2-h_1)
It's impossible to answer that without knowing what such things as "m_dot" and "Q-out" mean. And that is given nowhere in what you have copied here.
Separate names with a comma.