Skip to content

Commit c11bd9d

Browse files
committed
HW acceleration for videos
1 parent 1b2f5fa commit c11bd9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

QuickLook.Plugin/QuickLook.Plugin.VideoViewer/ViewerPanel.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ private void ShowErrorNotification(object sender, EventArgs e)
339339

340340
public void LoadAndPlay(string path)
341341
{
342-
mediaElement.LoadMedia(path);
342+
mediaElement.LoadMediaWithOptions(path, ":avcodec-hw=dxva2");
343343
mediaElement.Volume = 50;
344344

345345
mediaElement.Play();

0 commit comments

Comments
 (0)