mfvideosrc: Add a new property for ICoreDispatcher setting
authorSeungha Yang <seungha@centricular.com>
Fri, 24 Jul 2020 11:48:20 +0000 (20:48 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 26 Jul 2020 12:52:15 +0000 (12:52 +0000)
commit502aea3969da71ccc974cc0ea3b6886888241688
treeecd326278ef93c4b7abfd34ab20ada4797c930ce
parent42de98fd42a6a549453f56a5bb8a72daffc7afd6
mfvideosrc: Add a new property for ICoreDispatcher setting

Since the commit c29c71ae9d46cc70e29e0cca2313917f319ef6f2,
device activation method will be called from an internal thread.

A problem is that, CoreApplication::GetCurrentView()
method will return nullptr if it was called from non-UI thread,
and as a result, currently implemented method for accessing ICoreDispatcher
will not work in any case. There seems to be no robust way for
accessing ICoreDispatcher other then setting it by user.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1466>
sys/mediafoundation/gstmfcapturewinrt.cpp
sys/mediafoundation/gstmfcapturewinrt.h
sys/mediafoundation/gstmfdevice.c
sys/mediafoundation/gstmfsourceobject.c
sys/mediafoundation/gstmfsourceobject.h
sys/mediafoundation/gstmfvideosrc.c
sys/mediafoundation/mediacapturewrapper.cpp
sys/mediafoundation/mediacapturewrapper.h