Commit 31e4ef72 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

filmDS: on load, always go to paused mode (or autoplay)

parent 27884764
...@@ -1203,12 +1203,12 @@ bool filmDS::open(const std::string&path, const gem::Properties&props) ...@@ -1203,12 +1203,12 @@ bool filmDS::open(const std::string&path, const gem::Properties&props)
player->setPosition(0); player->setPosition(0);
double d=0.; double d=0.;
if(props.get("auto", d)) { if(props.get("auto", d)) {
if(d>-1e8 && d<1e8) }
player->setPaused(true); if(d>-1e8 && d<1e8)
else { player->setPaused(true);
player->setSpeed(d); else {
player->play(); player->setSpeed(d);
} player->play();
} }
} else { } else {
close(); close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment