Skip to content

Commit ef0c996

Browse files
author
Clement Champetier
committed
StreamTranscoder: fixed private method getProcessCase
The process case of a StreamTranscoder could change during the process (depending on the state of the _currentDecoder attribute).
1 parent 75d6c30 commit ef0c996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ void StreamTranscoder::setOffset( const float offset )
556556

557557
StreamTranscoder::EProcessCase StreamTranscoder::getProcessCase() const
558558
{
559-
if( _inputStream && _inputDecoder )
559+
if( _inputStream && _inputDecoder && _currentDecoder == _inputDecoder )
560560
return eProcessCaseTranscode;
561-
else if( _inputStream && ! _inputDecoder )
561+
else if( _inputStream && ! _inputDecoder && ! _currentDecoder )
562562
return eProcessCaseRewrap;
563563
else
564564
return eProcessCaseGenerator;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy