Skip to content

Commit

Permalink
Merge pull request wang-bin#969 from 0xFelix/fixAVTransCoderStop
Browse files Browse the repository at this point in the history
Disconnect sourcePlayers signal stopped from vfilter/afilter when stopping AVTranscoder
  • Loading branch information
wang-bin authored Oct 12, 2017
2 parents c805873 + 58245bb commit 4959f40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AVTranscoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ void AVTranscoder::stop()
// uninstall encoder filters first then encoders can be closed safely
if (sourcePlayer()) {
sourcePlayer()->uninstallFilter(d->afilter);
disconnect(sourcePlayer(), SIGNAL(stopped()), d->afilter, SLOT(finish()));
sourcePlayer()->uninstallFilter(d->vfilter);
disconnect(sourcePlayer(), SIGNAL(stopped()), d->vfilter, SLOT(finish()));
}
if (d->afilter)
d->afilter->finish(); //FIXME: thread of sync mode
Expand Down

0 comments on commit 4959f40

Please sign in to comment.