Yellow smelly thick fluid from penis

I have had this problem for a couple of days now, each time I masturbate, long before the orgasm, this happens, I have looked it up online and articles usually mention penile discharges. However, this doesn't look like a discharge to me, because there is only a little fluid comming out. Also, I'm a virgin, so I think STDs are ruled out.

I’m not sure about the smell part, but I used to get a random white/yellowish discharge but did not have an std. The doctor told me I had urethritis**(sorry about the spelling) They gave me an AntiBiotic used to treat Stds and it went away but it randomly would come back once every year for about 3 years, then it finally stopped. I’d definitely get it checked out. Does it burn when you pee?