Skip to content

Commit aa9387e

Browse files
author
Clement Champetier
committed
Transcoder: fix seg fault at the end of a transcode process
The StreamTranscoders have to be destroy (close codec included) before removing the InputFiles (streams).
1 parent d5d633f commit aa9387e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Transcoder::Transcoder(IOutputFile& outputFile)
2525

2626
Transcoder::~Transcoder()
2727
{
28-
for(std::vector<InputFile*>::iterator it = _inputFiles.begin(); it != _inputFiles.end(); ++it)
28+
for(std::vector<StreamTranscoder*>::iterator it = _streamTranscodersAllocated.begin();
29+
it != _streamTranscodersAllocated.end(); ++it)
2930
{
3031
delete(*it);
3132
}
32-
for(std::vector<StreamTranscoder*>::iterator it = _streamTranscodersAllocated.begin();
33-
it != _streamTranscodersAllocated.end(); ++it)
33+
for(std::vector<InputFile*>::iterator it = _inputFiles.begin(); it != _inputFiles.end(); ++it)
3434
{
3535
delete(*it);
3636
}

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