GstEngine: Append "2" to wasapi2sink output description

This commit is contained in:
Jonas Kvinge 2022-04-02 01:37:43 +02:00
parent 8f016880af
commit 0dab7e293c
1 changed files with 3 additions and 0 deletions

View File

@ -698,6 +698,9 @@ GstEngine::PluginDetailsList GstEngine::GetPluginList(const QString &classname)
PluginDetails details; PluginDetails details;
details.name = QString::fromUtf8(gst_plugin_feature_get_name(p->data)); details.name = QString::fromUtf8(gst_plugin_feature_get_name(p->data));
details.description = QString::fromUtf8(gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_DESCRIPTION)); details.description = QString::fromUtf8(gst_element_factory_get_metadata(factory, GST_ELEMENT_METADATA_DESCRIPTION));
if (details.name == "wasapi2sink" && details.description == "Stream audio to an audio capture device through WASAPI") {
details.description += " 2";
}
ret << details; ret << details;
//qLog(Debug) << details.name << details.description; //qLog(Debug) << details.name << details.description;
} }