summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-02-18 21:38:37 +0900
committerSeungha Yang <seungha@centricular.com>2021-02-18 21:46:08 +0900
commit8d1a79e5203da089fda22a7569e8a8670fcb3b44 (patch)
treec45e6f4551ec82b3e3b29c195046af066e7f9ae2 /sys
parent6da109cdb0f0578dfbb65845cfc071d04ba5cc61 (diff)
downloadgstreamer-plugins-bad-8d1a79e5203da089fda22a7569e8a8670fcb3b44.tar.gz
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>
Diffstat (limited to 'sys')
-rw-r--r--sys/wasapi2/gstwasapi2device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/wasapi2/gstwasapi2device.c b/sys/wasapi2/gstwasapi2device.c
index ab912e7f6..6a36fcecd 100644
--- a/sys/wasapi2/gstwasapi2device.c
+++ b/sys/wasapi2/gstwasapi2device.c
@@ -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,