GstStartup: Remove setting rank for wasapisink and directsoundsink

This commit is contained in:
Jonas Kvinge 2023-04-22 17:15:41 +02:00
parent d8ce177ce7
commit c6e62b3263
1 changed files with 0 additions and 15 deletions

View File

@ -84,21 +84,6 @@ void GstStartup::InitializeGStreamer() {
gstfastspectrum_register_static();
#endif
#ifdef Q_OS_WIN32
// Use directsoundsink by default because of buggy wasapi plugin.
GstRegistry *reg = gst_registry_get();
if (reg) {
GstPluginFeature *directsoundsink = gst_registry_lookup_feature(reg, "directsoundsink");
GstPluginFeature *wasapisink = gst_registry_lookup_feature(reg, "wasapisink");
if (directsoundsink && wasapisink) {
gst_plugin_feature_set_rank(directsoundsink, GST_RANK_PRIMARY);
gst_plugin_feature_set_rank(wasapisink, GST_RANK_SECONDARY);
}
if (directsoundsink) gst_object_unref(directsoundsink);
if (wasapisink) gst_object_unref(wasapisink);
}
#endif
}
void GstStartup::SetEnvironment() {