The case of a Southern California judge charged with murder in his wife's fatal shooting has ended in a mistrial.