mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
6da109cdb0
commit
8d1a79e520
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue