If you have a problem with the camera definately get it fixed before warranty is up. If your really lucky they may replace the whole phone which could fix your other problem. If not I'd still get the camera fixed

Sent from my HTC One using XDA Premium 4 mobile app