wasapi2device: Make wasapi2 device distinguishable from wasapi device

Both wasapi2 and wasapi plugins use WASAPI API. So "device.api=wasapi"
would make sense for the wasapi2 plugin as well. But people would be
confused by the identical "device.api=wasapi" property if intended
plugin is wasapi, not wasapi2. This change will make them distinguishable
by using "device.api" device property.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2024>
This commit is contained in:
Seungha Yang 2021-02-18 21:38:37 +09:00
parent 6da109cdb0
commit 8d1a79e520

View file

@ -208,10 +208,10 @@ gst_wasapi2_device_provider_probe_internal (GstWasapi2DeviceProvider * self,
}
props = gst_structure_new ("wasapi2-proplist",
"device.api", G_TYPE_STRING, "wasapi",
"device.api", G_TYPE_STRING, "wasapi2",
"device.id", G_TYPE_STRING, device_id,
"device.default", G_TYPE_BOOLEAN, i == 0,
"wasapi.device.description", G_TYPE_STRING, device_name, NULL);
"wasapi2.device.description", G_TYPE_STRING, device_name, NULL);
device = g_object_new (GST_TYPE_WASAPI2_DEVICE, "device", device_id,
"display-name", device_name, "caps", caps,