]> git.sesse.net Git - vlc/commitdiff
DirectDraw/Direct3D: make a clean copy of the video-format
authorHannes Domani <ssbssa@yahoo.de>
Thu, 28 Aug 2014 12:08:58 +0000 (14:08 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 28 Aug 2014 19:09:15 +0000 (21:09 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/msw/direct3d.c
modules/video_output/msw/directx.c

index fc959fcc5d7e128ef53d83be7b93a33aef6a02eb..1d7c7c81e835662f8bd7ce1c0179e4c13ce85312 100644 (file)
@@ -228,7 +228,8 @@ static int Open(vlc_object_t *object)
     var_AddCallback(vd, "video-wallpaper", DesktopCallback, 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;
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;