mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
Bugfix: update depth of sources from dropped media file
To be investigated further if problem persists: patch seems to work (increment twice View::need_deep_update_) but not fully sure why two frames are necessary...
This commit is contained in:
@@ -118,8 +118,8 @@ void MediaSource::init()
|
|||||||
// force update of activation mode
|
// force update of activation mode
|
||||||
active_ = true;
|
active_ = true;
|
||||||
|
|
||||||
// deep update to reorder
|
// deep update to reorder (two frames to give time to insert)
|
||||||
++View::need_deep_update_;
|
View::need_deep_update_ += 2;
|
||||||
|
|
||||||
// done init
|
// done init
|
||||||
Log::Info("Source '%s' linked to Media %s.", name().c_str(), std::to_string(mediaplayer_->id()).c_str());
|
Log::Info("Source '%s' linked to Media %s.", name().c_str(), std::to_string(mediaplayer_->id()).c_str());
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ void Mixer::insertSource(Source *s, View::Mode m)
|
|||||||
|
|
||||||
// switch to this view to show source created
|
// switch to this view to show source created
|
||||||
setView(m);
|
setView(m);
|
||||||
current_view_->update(0.f);
|
current_view_->update(dt_);
|
||||||
current_view_->centerSource(s);
|
current_view_->centerSource(s);
|
||||||
|
|
||||||
// set this new source as current
|
// set this new source as current
|
||||||
|
|||||||
Reference in New Issue
Block a user