Mark Gastineau just took an L in his battle against ESPN over a recorded interaction with Brett Favre ... as TMZ Sports has learned a judge dismissed his lawsuit with prejudice.