Update audio channel mapping control when a different stream is selected.
authorCarl Hetherington <cth@carlh.net>
Sun, 10 Nov 2013 16:48:33 +0000 (16:48 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 10 Nov 2013 16:49:48 +0000 (16:49 +0000)
src/wx/audio_panel.cc

index b4921904c2051fe5accd41b1bda9e6c13a6423b1..f96eeec2b74ff77d6ba05c94b3ba95fbf11cafbd 100644 (file)
@@ -130,6 +130,7 @@ AudioPanel::film_content_changed (shared_ptr<Content> c, int property)
                _sizer->Layout ();
        } else if (property == FFmpegContentProperty::AUDIO_STREAM) {
                setup_stream_description ();
+               _mapping->set (ac ? ac->audio_mapping () : AudioMapping ());
        } else if (property == FFmpegContentProperty::AUDIO_STREAMS) {
                _stream->Clear ();
                if (fc) {