Changed MediaPlayer discovering process: using thread to perform

discovery (instead of async gstreamer callback).
This commit is contained in:
brunoherbelin
2020-08-15 09:12:06 +02:00
parent 5763a9e756
commit 44b9169cdc
7 changed files with 263 additions and 256 deletions

View File

@@ -149,7 +149,7 @@ void SessionVisitor::visit(MediaPlayer &n)
// gaps in timeline
XMLElement *gapselement = xmlDoc_->NewElement("Gaps");
std::list< std::pair<guint64, guint64> > gaps = n.timeline.gaps();
std::list< std::pair<guint64, guint64> > gaps = n.timeline().gaps();
for( auto it = gaps.begin(); it!= gaps.end(); it++) {
XMLElement *g = xmlDoc_->NewElement("Interval");
g->SetAttribute("begin", (*it).first);