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)
player->setPosition(0);
double d=0.;
if(props.get("auto", d)) {
if(d>-1e8 && d<1e8)
player->setPaused(true);
else {
player->setSpeed(d);
player->play();
}
}
if(d>-1e8 && d<1e8)
player->setPaused(true);
else {
player->setSpeed(d);
player->play();
}
} else {
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