mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-16 12:49:59 +01:00
BugFix loading of info of media source
This commit is contained in:
@@ -112,8 +112,8 @@ void InfoVisitor::visit(MediaPlayer &mp)
|
|||||||
|
|
||||||
information_ = oss.str();
|
information_ = oss.str();
|
||||||
|
|
||||||
// remember (except if codec was not identified yet)
|
// remember
|
||||||
if ( !mp.media().codec_name.empty() )
|
if ( mp.isOpen() )
|
||||||
current_id_ = mp.id();
|
current_id_ = mp.id();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,6 +137,7 @@ void InfoVisitor::visit (MediaSource& s)
|
|||||||
|
|
||||||
s.mediaplayer()->accept(*this);
|
s.mediaplayer()->accept(*this);
|
||||||
|
|
||||||
|
if (s.ready())
|
||||||
current_id_ = s.id();
|
current_id_ = s.id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user