From 9f23ffc009c19e5e0a842536f718dfac056c2f35 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 2 Jan 2020 12:31:38 +0100 Subject: [PATCH] plugin: Don't add audio encoders This is a temporary workaround until OBS supports selecting audio format for each stream. --- source/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/plugin.cpp b/source/plugin.cpp index 5f6b0cc..4ca598d 100644 --- a/source/plugin.cpp +++ b/source/plugin.cpp @@ -106,8 +106,8 @@ try { if (!av_codec_is_encoder(cdc)) continue; - if ((cdc->type == AVMediaType::AVMEDIA_TYPE_AUDIO) - || (cdc->type == AVMediaType::AVMEDIA_TYPE_VIDEO)) { + if (/*(cdc->type == AVMediaType::AVMEDIA_TYPE_AUDIO) + || */(cdc->type == AVMediaType::AVMEDIA_TYPE_VIDEO)) { auto ptr = std::make_shared(cdc); ptr->register_encoder(); generic_factories.emplace(cdc, ptr);