gstreamer/sys/wasapi2
Seungha Yang 9e56d20279 wasapi2: Activate device asynchronously if required
In case of UWP, documentation from MS is saying that
ActivateAudioInterfaceAsync() method should be called from UI thread.
And the resulting callback might not happen until user interaction
has been made.
So we cannot wait the activation result on constructed() method.
and therefore we should return gst_wasapi2_client_new()
immediately without waiting the result if wasapi2 elements are
running on UWP application.
In addition to async operation fix, this commit includes COM object
reference counting issue around ActivateAudioInterfaceAsync() call.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1466>
2020-07-26 12:52:15 +00:00
..
AsyncOperations.h wasapi2: Introduce new WASAPI plugin 2020-06-08 03:10:05 +00:00
gstwasapi2client.cpp wasapi2: Activate device asynchronously if required 2020-07-26 12:52:15 +00:00
gstwasapi2client.h wasapi2: Activate device asynchronously if required 2020-07-26 12:52:15 +00:00
gstwasapi2device.c wasapi2: Add a new property for ICoreDispatcher setting 2020-07-26 12:52:15 +00:00
gstwasapi2device.h wasapi2: Add device provider implementation 2020-06-08 03:10:05 +00:00
gstwasapi2sink.c wasapi2: Activate device asynchronously if required 2020-07-26 12:52:15 +00:00
gstwasapi2sink.h wasapi2: Introduce new WASAPI plugin 2020-06-08 03:10:05 +00:00
gstwasapi2src.c wasapi2: Activate device asynchronously if required 2020-07-26 12:52:15 +00:00
gstwasapi2src.h wasapi2: Introduce new WASAPI plugin 2020-06-08 03:10:05 +00:00
gstwasapi2util.c plugins: Use g_win32_error_message for HRESULT to string conversion 2020-07-18 11:05:52 +09:00
gstwasapi2util.h wasapi2: Introduce new WASAPI plugin 2020-06-08 03:10:05 +00:00
meson.build wasapi2: Add device provider implementation 2020-06-08 03:10:05 +00:00
plugin.c docs: remove gst prefix from plugin titles 2020-07-02 18:10:21 +02:00