Optional: I think this is a matter for personal taste, but in situations like this I prefer doing like:

if (!net::IsSupportedMediaMimeType(mimetype))
  return;

The reason being you save an indentation level on the rest of the code. But anyway, this is up to you.