Nursing strike.

Help I think my 4 month old is on strike. She is refusing the breast. She usually eats like clock work every 2 hours. She's had a double ear infection been on antibiotics since Monday. Is that would might be causing it? How do I stop it? She already has trouble gaining weight. She just started alittle bit of baby cereal too.