Use shared live encoder types in stream publication

This commit is contained in:
evgeny committed 2026-10-14 21:44:16 +02:00
1 parent dca1adc173
commit 45720ebaba
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ void StreamPublishWindow::refreshSources() {
}
void StreamPublishWindow::refreshCodecs() {
m_updating = true; int previous = m_codec->currentData().toInt(); m_codec->clear();
for (int codec : m_engine->codecs()) m_codec->addItem(StreamVideoEncoder::codecName(codec), codec);
for (int codec : m_engine->codecs()) m_codec->addItem(LiveVideoEncoder::codecName(codec), codec);
int index = m_codec->findData(previous); if (index >= 0) m_codec->setCurrentIndex(index);
m_updating = false; synchronize();
}