mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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>
This commit is contained in:
parent
9e56d20279
commit
ed14e0d5a6
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue