mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Ensure that PlayerInterop is always used on the UI thread
This commit is contained in:
@@ -90,9 +90,12 @@ namespace Microsoft.Zune.Playback
|
||||
}
|
||||
|
||||
private void PlaybackWrapper_UriSet(object sender, EventArgs e)
|
||||
{
|
||||
Iris.Application.DeferredInvoke(new Iris.DeferredInvokeHandler(delegate
|
||||
{
|
||||
_playbackWrapper.UriSet -= PlaybackWrapper_UriSet;
|
||||
_playbackWrapper.Play();
|
||||
}), Iris.DeferredInvokePriority.Normal);
|
||||
}
|
||||
|
||||
public async Task Preload(PlaybackItem sourceConfig, CancellationToken cancellationToken = default)
|
||||
|
||||
Reference in New Issue
Block a user