+
+
+ /* finally some fixup: if our default audio stream is an MPEG audio stream,
+ and we have 'defaultac3' set, use the first available ac3 stream instead.
+ (note: if an ac3 audio stream was selected before, this will be also stored
+ in 'fisrt_ac3', so we don't need to worry. */
+ bool defaultac3 = false;
+ std::string default_ac3;
+
+ if (!ePythonConfigQuery::getConfigValue("config.av.defaultac3", default_ac3))
+ defaultac3 = default_ac3 == "True";
+
+ if (defaultac3 && (first_ac3 != -1))
+ program.defaultAudioStream = first_ac3;
+