rtmpproto: Check for the right return code