Skip to content

Commit

Permalink
Merge pull request #7 from 5G-MAG/fix/unused-media-tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsdvl authored Mar 22, 2024
2 parents 3e7c9d4 + 4e0d51c commit 96cc20f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions subprojects/avpipeline/src/AvPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ void AvMediaPipeline::initialize(MediaInfo mediaInfo, std::vector<BufferInfo> bu
mediaInfo_ = mediaInfo;
buffer_info_ = buffers;

std::map<int, BufferHandler*> buffIds;

try {

for (BufferInfo buff : buffer_info_) {
Expand Down Expand Up @@ -218,19 +216,10 @@ void AvMediaPipeline::fetch(){
break;
}
}
Decoder* dec = decoders_[avPkt->stream_index];
if(dec){
dec->QueuePacket(avPkt);
}
}

/*
for (auto & [streamIdx, dec]: decoders_){
if(dec){
dec->Stop();
if (decoders_.find(avPkt->stream_index) != decoders_.end()){
decoders_[avPkt->stream_index]->QueuePacket(avPkt);
}
}
*/

stateLock_->lock();
state_ = PipelineState::IDLE; // TODO: reset/resume/notify
Expand Down

0 comments on commit 96cc20f

Please sign in to comment.