From 6d5ef1f8ed4c97814718dead6e6949704217a66d Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 7 Nov 2013 20:33:53 +0000 Subject: loader wrangling --- rotord/src/rotor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index ee58484..eb3fbc8 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -260,7 +260,8 @@ namespace Rotor { create_attribute(_attr,_desc,_title,_value,_vals,_type); alias=&(attributes[_attr]->intVal); }; - virtual void init_attribute(const string &attr){}; + virtual void init_attribute(const string &attr){ + }; string description; string type; string ID; @@ -566,6 +567,7 @@ namespace Rotor { }; Video_loader(map &settings): Video_loader() { base_settings(settings); + for (auto a:attributes) cerr<<"Video loader: "<value<value!="") { isLoaded=load(find_setting(settings,"media_path","")+attributes["filename"]->value); } @@ -574,7 +576,7 @@ namespace Rotor { ~Video_loader(){}; void init_attribute(const string &attr){ if (attr=="filename") { - load(attributes["media_path"]->value+attributes[attr]->value); + isLoaded=load(attributes["media_path"]->value+attributes[attr]->value); } }; Video_loader* clone(map &_settings) { return new Video_loader(_settings);}; -- cgit v1.2.3