Skip to content

Commit

Permalink
Merge pull request avTranscoder#152 from cchampet/fix_TranscoderaddIn…
Browse files Browse the repository at this point in the history
…putFile

Transcoder: fix addInputFile check if stream isActivated
  • Loading branch information
valnoel committed Apr 2, 2015
2 parents 05389cd + b66c7bc commit c5d847a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AvTranscoder/transcoder/Transcoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ InputFile* Transcoder::addInputFile( const std::string& filename, const size_t s

for( std::vector< InputFile* >::iterator it = _inputFiles.begin(); it != _inputFiles.end(); ++it )
{
if( ( (*it)->getFilename() == filename ) )
if( ( (*it)->getFilename() == filename ) &&
! (*it)->getStream( streamIndex ).isActivated() )
{
referenceFile = (*it);
LOG_DEBUG( "Get instance of InputFile from '" << filename << "'" )
Expand Down

0 comments on commit c5d847a

Please sign in to comment.