I am 100% self taught. My greatest tool for learning was a 4-track recorder. I could play stuff and then record a track over that and see how it sounded. Was a great tool. Now I use a multi-track recorder as a compositional tool.
If you're getting frustrated, go onto something else. It just makes you more frustrated if you keep trying to get it when you're already frustrated.
Know your limits. I don't know your level of playing, but I can't figure out stuff all the time, either. In fact probably 50% of the time. But, I am also tryiing to figure out stuff by Frank Gambale, Scott Henderson, Chick Corea, Al Di Meola and others. And just try to duplicate some sax lines sometime, they make it sound deceptively simple. Well, not for guitar! Sometimes setting your goal high is good, but only after you've conquered stuff that is easier than your goal.
And some other things, the time that you practice is important. For me, the best time is 4:30-6:00AM. It's the only uninterrupted time that I have - got a 1 and 3 year old and a wife. If I try to do it at night, I am too toasted after work, can't concentrate, etc.
And this might sound corny, but eat right, take care of yourself and get some sleep. Your mind will be sharper. Ear training takes time for most people. Don't let the process blow you out, bud.