diff options
author | Seungha Yang <seungha@centricular.com> | 2020-07-25 20:40:52 +0900 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-07-26 12:52:15 +0000 |
commit | ed14e0d5a64c74506d50bac35663f7479eeb9c7f (patch) | |
tree | c03fe5dbf35f873b451098bc2101cca215ad06c5 /sys/wasapi2/gstwasapi2device.c | |
parent | 9e56d202793d3e9a71836420536bb19e6744b999 (diff) | |
download | gstreamer-plugins-bad-ed14e0d5a64c74506d50bac35663f7479eeb9c7f.tar.gz |
wasapi2device: Allow empty caps for UWP use case
If the device has not been activated yet, caps might not be available.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1466>
Diffstat (limited to 'sys/wasapi2/gstwasapi2device.c')
-rw-r--r-- | sys/wasapi2/gstwasapi2device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/wasapi2/gstwasapi2device.c b/sys/wasapi2/gstwasapi2device.c index 3688c2ed4..ab912e7f6 100644 --- a/sys/wasapi2/gstwasapi2device.c +++ b/sys/wasapi2/gstwasapi2device.c @@ -24,6 +24,7 @@ #include "gstwasapi2device.h" #include "gstwasapi2client.h" +#include "gstwasapi2util.h" GST_DEBUG_CATEGORY_EXTERN (gst_wasapi2_debug); #define GST_CAT_DEFAULT gst_wasapi2_debug @@ -190,7 +191,8 @@ gst_wasapi2_device_provider_probe_internal (GstWasapi2DeviceProvider * self, caps = gst_wasapi2_client_get_caps (client); if (!caps) { GST_WARNING_OBJECT (self, "Couldn't get caps from client %d", i); - goto next; + /* this might be a case where device activation is not finished yet */ + caps = gst_caps_from_string (GST_WASAPI2_STATIC_CAPS); } g_object_get (client, |