mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-22 05:08:37 -05:00
UI: Refactor FFmpeg utilities codec/format enumeration
This commit is contained in:
@@ -186,7 +186,7 @@ static inline QString GetComboData(QComboBox *combo)
|
||||
|
||||
static int FindEncoder(QComboBox *combo, const char *name, int id)
|
||||
{
|
||||
FFmpegCodec codec{name, nullptr, id};
|
||||
FFmpegCodec codec{name, id};
|
||||
|
||||
for (int i = 0; i < combo->count(); i++) {
|
||||
QVariant v = combo->itemData(i);
|
||||
@@ -2238,7 +2238,7 @@ void OBSBasicSettings::LoadAdvOutputRecordingEncoderProperties()
|
||||
static void SelectFormat(QComboBox *combo, const char *name,
|
||||
const char *mimeType)
|
||||
{
|
||||
FFmpegFormat format{name, nullptr, mimeType};
|
||||
FFmpegFormat format{name, mimeType};
|
||||
|
||||
for (int i = 0; i < combo->count(); i++) {
|
||||
QVariant v = combo->itemData(i);
|
||||
|
||||
Reference in New Issue
Block a user