mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 10:19:59 +01:00
New icons for source representation in Mixing and Layer views.
This commit is contained in:
@@ -81,10 +81,14 @@ void MediaSource::init()
|
||||
attach(renderbuffer);
|
||||
|
||||
// icon in mixing view
|
||||
if (mediaplayer_->duration() == GST_CLOCK_TIME_NONE)
|
||||
overlays_[View::MIXING]->attach( new Mesh("mesh/icon_image.ply") );
|
||||
else
|
||||
overlays_[View::MIXING]->attach( new Mesh("mesh/icon_video.ply") );
|
||||
if (mediaplayer_->duration() == GST_CLOCK_TIME_NONE) {
|
||||
overlays_[View::MIXING]->attach( new Icon(Icon::IMAGE) );
|
||||
overlays_[View::LAYER]->attach( new Icon(Icon::IMAGE) );
|
||||
}
|
||||
else {
|
||||
overlays_[View::MIXING]->attach( new Icon(Icon::VIDEO) );
|
||||
overlays_[View::LAYER]->attach( new Icon(Icon::VIDEO) );
|
||||
}
|
||||
|
||||
// done init
|
||||
initialized_ = true;
|
||||
|
||||
Reference in New Issue
Block a user