vout: fix viewpoint init state
authorThomas Guillem <thomas@gllm.fr>
Mon, 24 Jul 2017 14:38:29 +0000 (16:38 +0200)
committerThomas Guillem <thomas@gllm.fr>
Tue, 25 Jul 2017 14:40:51 +0000 (16:40 +0200)
This value is only used to compare new viewpoints with the current one.

src/video_output/display.c

index aaa24b0..07a1f6e 100644 (file)
@@ -1244,6 +1244,7 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
     osys->is_display_filled = cfg->is_display_filled;
     osys->width_saved    = cfg->display.width;
     osys->height_saved   = cfg->display.height;
+    osys->viewpoint      = cfg->viewpoint;
     if (osys->is_fullscreen) {
         vout_display_cfg_t cfg_windowed = *cfg;
         cfg_windowed.is_fullscreen  = false;