Which OS are you using? How did you reinstall it?
What kind of files are playing (if any) when it shuts down on its own? Where did you download them from?
Does using another media player like VLC click here to play the same files cause similar (VLC shuts down on its own) problems? G