mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 19:29:58 +01:00
BugFix Mediaplayer loop and info mediaplayer
This commit is contained in:
@@ -224,7 +224,7 @@ void InfoVisitor::visit (CloneSource& s)
|
|||||||
oss << "Clone of '" << s.origin()->name() << "' ";
|
oss << "Clone of '" << s.origin()->name() << "' ";
|
||||||
oss << CloneSource::cloning_provenance_label[s.cloningProvenance()] << std::endl;
|
oss << CloneSource::cloning_provenance_label[s.cloningProvenance()] << std::endl;
|
||||||
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
|
oss << (s.frame()->use_alpha() ? "RGBA, " : "RGB, ");
|
||||||
oss << (int)(s.delay()*100.0) << " ms delay " << std::endl;
|
oss << (int)(s.delay()*1000.0) << " ms delay " << std::endl;
|
||||||
oss << s.frame()->width() << " x " << s.frame()->height();
|
oss << s.frame()->width() << " x " << s.frame()->height();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1013,9 +1013,8 @@ void MediaPlayer::update()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// manage loop mode
|
// manage loop mode
|
||||||
if (need_loop) {
|
if (need_loop)
|
||||||
execute_loop_command();
|
execute_loop_command();
|
||||||
}
|
|
||||||
|
|
||||||
force_update_ = false;
|
force_update_ = false;
|
||||||
}
|
}
|
||||||
@@ -1030,7 +1029,8 @@ void MediaPlayer::execute_loop_command()
|
|||||||
execute_seek_command();
|
execute_seek_command();
|
||||||
}
|
}
|
||||||
else { //LOOP_NONE
|
else { //LOOP_NONE
|
||||||
play(false);
|
if (desired_state_ == GST_STATE_PLAYING) // avoid repeated call
|
||||||
|
play(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user