mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
UI: Fix audio ids not being stored properly
Audio ids were being stored in a map with const char pointers, thus they were destroyed when call_once finished. To fix this, store std::strings instead.
This commit is contained in:
@@ -277,8 +277,9 @@ static void PopulateAACBitrates(initializer_list<QComboBox *> boxes)
|
||||
|
||||
vector<pair<QString, QString>> pairs;
|
||||
for (auto &entry : bitrateMap)
|
||||
pairs.emplace_back(QString::number(entry.first),
|
||||
obs_encoder_get_display_name(entry.second));
|
||||
pairs.emplace_back(
|
||||
QString::number(entry.first),
|
||||
obs_encoder_get_display_name(entry.second.c_str()));
|
||||
|
||||
for (auto box : boxes) {
|
||||
QString currentText = box->currentText();
|
||||
|
||||
Reference in New Issue
Block a user