Skip to content

Commit 16f326e

Browse files
author
Clement Champetier
committed
Transcoder: add a stream from a StreamTranscoder
1 parent 7cad048 commit 16f326e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/AvTranscoder/Transcoder/Transcoder.cpp

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

110+
void Transcoder::add( StreamTranscoder& stream )
111+
{
112+
_streamTranscoders.push_back( &stream );
113+
}
114+
110115
bool Transcoder::processFrame()
111116
{
112117
if( _streamTranscoders.size() == 0 )

src/AvTranscoder/Transcoder/Transcoder.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class Transcoder
5151
*/
5252
void add( const std::string& filename, const size_t streamIndex, const int subStreamIndex, Profile::ProfileDesc& profileDesc );
5353

54+
void add( StreamTranscoder& stream );
55+
5456
bool processFrame();
5557

5658
void process( ProgressListener& progress );

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