It could be either of those you mentioned, but probably not.
These are the most common problems below.
# 1. is the MOST common problem of all.
RV refrigerators need some cleaning and maintainance from time to time.
1. The small small slits at the end of the propane tube (where the flame is actually burning) are clogged up. I have seen rust on some, and others were clogged with a small spider web that resrticted the propane flow just enough to where it would not stay lit. Easy fix once you get the part out. Check it, clean it, maybe a quick blast with compressed air. Re-assemble and give it a try. I have seen some that came out in 3 or 4 minutes with a screw driver, and others took up to 1 hour to get all of the parts out of there.
2. The thermocoupler is out of alignment. The thermocoupler is the small rod that is directly over the propane flame. If the thermocoupler is not directly over the flame, it won't get hot enough to tell the refrigerator to keep pumping propane and the pilot light will go out. I have seen some of these that worked loose and shifted out of alignment (easy fix, just re-tighten). Others just needed to be bent a little so they were over the flame (as much as possible).
.
.