Skip to content

Commit

Permalink
Restored carousels!
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkvt80 committed Dec 12, 2016
1 parent dbfb7cc commit eec605f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion carousel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TTXPageStream* Carousel::nextCarousel()

if (p->Expired())
{
//std::cerr << "[Carousel::nextCarousel] page " << std::hex << p->GetPageNumber() << std::dec << " cycle time=" << p->GetCycleTime() << std::endl;
std::cerr << "[Carousel::nextCarousel] page " << std::hex << p->GetPageNumber() << std::dec << " cycle time=" << p->GetCycleTime() << std::endl;
p->SetTransitionTime(); // We found a carousel that is ready to step
break;
}
Expand Down
2 changes: 1 addition & 1 deletion filemonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void FileMonitor::run()
}
}
closedir(dp);
std::cerr << "[FileMonitor::run] Finished scan" << std::endl;
// std::cerr << "[FileMonitor::run] Finished scan" << std::endl;

// Delete pages that no longer exist (this blocks the thread until the pages are removed)
_pageList->DeleteOldPages();
Expand Down
4 changes: 2 additions & 2 deletions mag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Packet* Mag::GetPacket(Packet* p)
}
else // No carousel? Take the next page in the main sequence
{
std::cerr << "X";
// std::cerr << "X";
if (_it==_pageSet->end())
{
std::cerr << "This can not happen" << std::endl;
Expand All @@ -140,7 +140,7 @@ Packet* Mag::GetPacket(Packet* p)
return filler;
// Stays in HEADER mode so that we run this again
}
if (_page->IsCarousel()) // This should not happen. We should not consider carousels at this point.
if (_page->IsCarousel() && _page->GetCarouselFlag()) // Don't let registered carousel pages into the main page sequence
{
// todo:
// std::cerr << "Page is a carousel. This can not happen" << std::endl;
Expand Down

0 comments on commit eec605f

Please sign in to comment.