]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/directx.c
vout: remove no longer used display size event parameter
[vlc] / modules / video_output / msw / directx.c
index 4832fd03bd11c87f8bb0d1abae031e1637345875..afaa8f8df3023791b345e2149c1334d143d8fb33 100644 (file)
@@ -210,7 +210,8 @@ static int Open(vlc_object_t *object)
     var_AddCallback(vd, "video-wallpaper", WallpaperCallback, NULL);
 
     /* Setup vout_display now that everything is fine */
-    vd->fmt     = fmt;
+    video_format_Clean(&vd->fmt);
+    video_format_Copy(&vd->fmt, &fmt);
     vd->info    = info;
 
     vd->pool    = Pool;