Skip to content

Commit 51b0eae

Browse files
author
Clement Champetier
committed
Transcoder: remove add( StreamTranscoder& stream )
We delete all the 'StreamTranscoder' in destructor of 'Transcoder': can't add a reference to a stream from outside like this.
1 parent 00380fe commit 51b0eae

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,6 @@ void Transcoder::add( const std::string& filename, const size_t streamIndex, con
190190
addTranscodeStream( filename, streamIndex, subStreamIndex, profileDesc, offset );
191191
}
192192

193-
void Transcoder::add( StreamTranscoder& stream )
194-
{
195-
_streamTranscoders.push_back( &stream );
196-
}
197-
198193
void Transcoder::init()
199194
{
200195
for( size_t streamIndex = 0; streamIndex < _streamTranscoders.size(); ++streamIndex )

src/AvTranscoder/transcoder/Transcoder.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,6 @@ class AvExport Transcoder
9494
*/
9595
void add( const std::string& filename, const size_t streamIndex, const int subStreamIndex, Profile::ProfileDesc& profileDesc, ICodec& codec, const size_t offset = 0 );
9696

97-
/**
98-
* @brief Add the stream
99-
* @note The stream will be deleted in Transcoder's destructor.
100-
*/
101-
void add( StreamTranscoder& stream );
102-
10397
/**
10498
* @brief Initialize all streams added, by ensure process necessary frames in case of latency.
10599
* @note This can be called several times with no side effects.

0 commit comments

Comments
 (0)