diff options
Diffstat (limited to 'rotord/src/rotor.h')
| -rw-r--r-- | rotord/src/rotor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index b0d10c6..a54fedd 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; @@ -567,6 +568,7 @@ namespace Rotor { }; Video_loader(map<string,string> &settings): Video_loader() { base_settings(settings); + for (auto a:attributes) cerr<<"Video loader: "<<a.first<<" set to "<<a.second->value<<endl; if (attributes["filename"]->value!="") { isLoaded=load(find_setting(settings,"media_path","")+attributes["filename"]->value); } @@ -575,7 +577,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<string,string> &_settings) { return new Video_loader(_settings);}; |
