Fix WinRT activation factory usage in WindowsMediaController
Co-authored-by: jonaski <10343810+jonaski@users.noreply.github.com>
This commit is contained in:
committed by
Jonas Kvinge
parent
0e0117b19b
commit
597f983c92
@@ -80,10 +80,7 @@ WindowsMediaController::WindowsMediaController(HWND hwnd,
|
|||||||
|
|
||||||
// Get the SystemMediaTransportControls instance for this window
|
// Get the SystemMediaTransportControls instance for this window
|
||||||
// Use the interop interface
|
// Use the interop interface
|
||||||
winrt::com_ptr<ISystemMediaTransportControlsInterop> interop;
|
auto interop = winrt::get_activation_factory<SystemMediaTransportControls, ISystemMediaTransportControlsInterop>();
|
||||||
winrt::check_hresult(winrt::get_activation_factory<SystemMediaTransportControls, ISystemMediaTransportControlsInterop>(
|
|
||||||
L"Windows.Media.SystemMediaTransportControls", interop.put_void()
|
|
||||||
));
|
|
||||||
|
|
||||||
if (!interop) {
|
if (!interop) {
|
||||||
qLog(Warning) << "Failed to get ISystemMediaTransportControlsInterop";
|
qLog(Warning) << "Failed to get ISystemMediaTransportControlsInterop";
|
||||||
|
|||||||
Reference in New Issue
Block a user