mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-18 20:21:56 -04: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:
1 parent
2a991a4fa0
commit
02e5410381
3 files changed
+9
-8
No files matched your search
@@ -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