summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-02 15:22:24 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-02 15:22:24 +0100
commitf89be8d79f4fe02be688b3cb3d1cc4e8c1aad26a (patch)
tree0f764072ebfcb5a4e015d23dcd2b0595891300a6 /src/lib/ffmpeg_content.cc
parentc157cd97740a2ba55d3e87bd9844429cc7d49ce7 (diff)
Fix unsafe unlocked leak of reference.
Diffstat (limited to 'src/lib/ffmpeg_content.cc')
-rw-r--r--src/lib/ffmpeg_content.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc
index fa2671b36..eab110236 100644
--- a/src/lib/ffmpeg_content.cc
+++ b/src/lib/ffmpeg_content.cc
@@ -173,7 +173,9 @@ FFmpegContent::examine (shared_ptr<Job> job)
_audio_streams = examiner->audio_streams ();
if (!_audio_streams.empty ()) {
- _audio_streams.front()->mapping().make_default ();
+ AudioMapping m = _audio_streams.front()->mapping ();
+ m.make_default ();
+ _audio_streams.front()->set_mapping (m);
}
_first_video = examiner->first_video ();