Masturbating is linked to "libido" (let's say vital energy). Libido is suposed to be user thru various activities like WORKING, STUDYING, HUMAN RELATIONSHIPS, LEARNING, CONTRIBUTING, BUILDING, CREATING, LOVING, PHYSICAL ACTIVITY AND...Sex -with someone else-. It is also an anxiolitic activity, an anti stress.
If you masturbate exageratly/obsessively/compulsively it means; you re bored, you re not using your intellectual/physical ressources enough, you re stressed, and also that you might be addicted to masturbation due to porn abuse.
Needless to say, just like in every case of abuse, it means something is going wrong. Basically it sounds like that you re not getting any satisfaction from others importants things in life thus over investing masturbation -which means i also guess in your case porn watching-.