BugFix loading of info of media source

This commit is contained in:
Bruno Herbelin
2023-05-30 16:42:22 +02:00
parent 4b7db87444
commit 7e5041eac5

View File

@@ -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();
} }