Skip to content

Commit 54043f7

Browse files
author
Clement Champetier
committed
Merge branch 'hotfix/v0.6.1' into develop
Conflicts: src/AvTranscoder/transcoder/StreamTranscoder.hpp src/AvTranscoder/transcoder/Transcoder.cpp
2 parents 7f1329f + 3f96a67 commit 54043f7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/AvTranscoder/transcoder/StreamTranscoder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AvExport StreamTranscoder
8080
ITransform& getTransform() const { return *_transform; }
8181

8282
/// Returns a reference to the stream which unwraps data
83-
IInputStream& getInputStream() const { return *_inputStream; }
83+
IInputStream* getInputStream() const { return _inputStream; }
8484
/// Returns a reference to the stream which wraps data
8585
IOutputStream& getOutputStream() const { return *_outputStream; }
8686

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,12 @@ void Transcoder::fillProcessStat(ProcessStat& processStat)
563563
for(size_t streamIndex = 0; streamIndex < _streamTranscoders.size(); ++streamIndex)
564564
{
565565
IOutputStream& stream = _streamTranscoders.at(streamIndex)->getOutputStream();
566-
const AVMediaType mediaType = _streamTranscoders.at(streamIndex)->getInputStream().getProperties().getStreamType();
566+
const IInputStream* inputStream = _streamTranscoders.at( streamIndex )->getInputStream();
567+
if(inputStream == NULL) {
568+
LOG_WARN( "Cannot process statistics of generated stream." )
569+
continue;
570+
}
571+
const AVMediaType mediaType = inputStream->getProperties().getStreamType();
567572
switch(mediaType)
568573
{
569574
case AVMEDIA_TYPE_VIDEO:

0 commit comments

Comments
 (0)