diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-23 14:52:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-23 14:52:08 +0100 |
| commit | 666d0b238f32c0383068d3d8f3936f46c4e67a14 (patch) | |
| tree | 1a1a39893432d78008f2311df03e40d4477cd715 /src/lib/encoder.cc | |
| parent | 9c262e6cc1cc7d365dc9f5a66162158e1623e4f2 (diff) | |
Try to stop crashes when tests are torn down.
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 3af80efa5..16d992314 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -43,7 +43,7 @@ Encoder::Encoder (shared_ptr<const Film> film, weak_ptr<Job> job) , _job (job) , _player (new Player (film, film->playlist ())) { - _player->Video.connect (bind (&Encoder::video, this, _1, _2)); - _player->Audio.connect (bind (&Encoder::audio, this, _1, _2)); - _player->Subtitle.connect (bind (&Encoder::subtitle, this, _1, _2)); + _player_video_connection = _player->Video.connect (bind (&Encoder::video, this, _1, _2)); + _player_audio_connection = _player->Audio.connect (bind (&Encoder::audio, this, _1, _2)); + _player_subtitle_connection = _player->Subtitle.connect (bind (&Encoder::subtitle, this, _1, _2)); } |
