H.R. Pufnstuf
The Horse With the Golden Throat
S1 E10:
A polka-dotted horse mistakes Freddy the Golden Flute for a carrot and swallows him. The problem is first getting flute out of the horse, and then keeping it away from Witchiepoo.