This can cause severe pain and discomfort and often requires surgical removal although in some cases, a vet may suggest pouring mineral oil or another substance into the ear to soften the seed and allow it to be shaken out by the dog — however it's essential that a correct diagnosis is made before this approach is taken and it should only be
attempted under veterinary supervision.