Don't loop continuously the playlist thread, use cond.