Commit af92c10c authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

DirectDraw/Direct3D: make a clean copy of the video-format

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 2f3d2d96b82b4eea9a17861b3da294457d1b4896)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6f5b0ebb
...@@ -228,7 +228,8 @@ static int Open(vlc_object_t *object) ...@@ -228,7 +228,8 @@ static int Open(vlc_object_t *object)
var_AddCallback(vd, "video-wallpaper", DesktopCallback, NULL); var_AddCallback(vd, "video-wallpaper", DesktopCallback, NULL);
/* Setup vout_display now that everything is fine */ /* 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->info = info;
vd->pool = Pool; vd->pool = Pool;
......
...@@ -210,7 +210,8 @@ static int Open(vlc_object_t *object) ...@@ -210,7 +210,8 @@ static int Open(vlc_object_t *object)
var_AddCallback(vd, "video-wallpaper", WallpaperCallback, NULL); var_AddCallback(vd, "video-wallpaper", WallpaperCallback, NULL);
/* Setup vout_display now that everything is fine */ /* 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->info = info;
vd->pool = Pool; vd->pool = Pool;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment