Skip to content

Commit 0cb94e6

Browse files
author
Clement Champetier
committed
Transcoder: rename _indexBasedStream to _mainStreamIndex
Index of stream used to stop the process of transcode in case of eProcessMethodBasedOnStream.
1 parent 0ce2680 commit 0cb94e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Transcoder::Transcoder( OutputFile& outputFile )
1717
, _outputFps( 25 )
1818
, _finalisedStreams( 0 )
1919
, _eProcessMethod ( eProcessMethodLongest )
20-
, _indexBasedStream( 0 )
20+
, _mainStreamIndex( 0 )
2121
, _verbose( false )
2222
{
2323
_outputFile.setup();
@@ -277,7 +277,7 @@ void Transcoder::process( IProgress& progress )
277277
totalDuration = getMaxTotalDuration();
278278
break;
279279
case eProcessMethodBasedOnStream :
280-
totalDuration = getStreamDuration( _indexBasedStream );
280+
totalDuration = getStreamDuration( _mainStreamIndex );
281281
break;
282282
case eProcessMethodInfinity :
283283
totalDuration = std::numeric_limits<double>::max();
@@ -311,7 +311,7 @@ void Transcoder::process( IProgress& progress )
311311
void Transcoder::setProcessMethod( const EProcessMethod eProcessMethod, const size_t indexBasedStream )
312312
{
313313
_eProcessMethod = eProcessMethod;
314-
_indexBasedStream = indexBasedStream;
314+
_mainStreamIndex = indexBasedStream;
315315

316316
for( size_t i = 0; i < _streamTranscoders.size(); ++i )
317317
{
@@ -330,7 +330,7 @@ void Transcoder::setProcessMethod( const EProcessMethod eProcessMethod, const si
330330
_streamTranscoders.at( i )->setInfinityStream( true );
331331
break;
332332
case eProcessMethodBasedOnStream :
333-
if( i != _indexBasedStream )
333+
if( i != _mainStreamIndex )
334334
_streamTranscoders.at( i )->setInfinityStream( true );
335335
else
336336
_streamTranscoders.at( i )->setInfinityStream( false );

src/AvTranscoder/transcoder/Transcoder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Transcoder
176176
size_t _finalisedStreams;
177177
EProcessMethod _eProcessMethod;
178178

179-
size_t _indexBasedStream; ///< Index of stream used to stop the process of transcode in case of eProcessMethodBasedOnStream.
179+
size_t _mainStreamIndex; ///< Index of stream used to stop the process of transcode in case of eProcessMethodBasedOnStream.
180180

181181
bool _verbose;
182182
};

0 commit comments

Comments
 (0)