From 65cf7b27e9d2f9e59da322b4fbad1ed1df27eb8d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 2 Sep 2012 12:18:44 +0100 Subject: v 0.1 --- liveengine/src/playlist.cpp | 63 ++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 27 deletions(-) (limited to 'liveengine/src/playlist.cpp') diff --git a/liveengine/src/playlist.cpp b/liveengine/src/playlist.cpp index 896c788..3063595 100644 --- a/liveengine/src/playlist.cpp +++ b/liveengine/src/playlist.cpp @@ -12,6 +12,7 @@ void playlist::load(string _name){ printf("unable to load %s check data/ folder\n",_name.c_str()); }else { printf("starting loader thread\n"); + loadimg(); //how to do this from the worker thread??? startThread(false, false); //blocking, verbose } @@ -20,37 +21,45 @@ void playlist::load(string _name){ } void playlist::threadedFunction(){ - if( lock() ){ - - int numLayers=0; - layers.clear(); - if(XML.pushTag("playlist")) { - numLayers=XML.getNumTags("svglayer"); - if(numLayers) { - for (int i=0;i