From 313f7ad3440a561e47cae64f73937c6d7f31043b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 7 Dec 2022 17:57:56 +0100 Subject: [PATCH] Use new API to compare export format/spec --- gtk2_ardour/export_format_dialog.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc index a671bb37ff..195d7c8fe4 100644 --- a/gtk2_ardour/export_format_dialog.cc +++ b/gtk2_ardour/export_format_dialog.cc @@ -429,13 +429,7 @@ ExportFormatDialog::load_state (FormatPtr spec) for (Gtk::ListStore::Children::iterator it = format_list->children ().begin (); it != format_list->children ().end (); ++it) { boost::shared_ptr format_in_list = it->get_value (format_cols.ptr); - /* see also ExportFormatManager::change_format_selection */ - if (format_in_list->get_format_id () == spec->format_id () && - // BWF has the same format id with wav, so we need to check this. - format_in_list->has_broadcast_info () == spec->has_broadcast_info () && - // Ogg can be Vorbis or OPUS - (format_in_list->get_format_id () != ExportFormatBase::F_Ogg || (spec->sample_format () == format_in_list->get_explicit_sample_format ())) - ) { + if (spec->is_format (format_in_list)) { format_in_list->set_selected (true); break; }