mediafoundation: Use core dispatcher of current view instead of main view
authorSeungha Yang <seungha@centricular.com>
Fri, 29 May 2020 13:55:56 +0000 (22:55 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 29 May 2020 14:01:08 +0000 (23:01 +0900)
commit12532cc8bba22c77778c2472ca485b9c33107644
tree67618ac4fc752ad2710246f0a7565ce664f08efd
parent00caf46e3fd5e517c0f2272b809dea949de550bf
mediafoundation: Use core dispatcher of current view instead of main view

Main view might be hidden depending on application's view tree.
In that case, ICoreApplication object doesn't return get_MainView() method

Note that nothing about this behavior was documented by Microsoft
https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.core.coreapplication.mainview

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1310>
sys/mediafoundation/mediacapturewrapper.cpp