]> git.sesse.net Git - vlc/commitdiff
core: do not overwrite visible size
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 26 Nov 2013 13:21:30 +0000 (14:21 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Dec 2013 12:46:03 +0000 (13:46 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/video_output/display.c

index 33734f16365f11824abcfedee5b0ebdde8c0faf9..2cc0e06a1f567952ac369fde9e41dadf8efba693 100644 (file)
@@ -1292,14 +1292,9 @@ static vout_display_t *DisplayNew(vout_thread_t *vout,
     }
     owner.sys = osys;
 
-    /* */
+    /* keep a reference to the source before display */
     video_format_t source = *source_org;
 
-    source.i_x_offset = 0;
-    source.i_y_offset = 0;
-    source.i_visible_width  = source.i_width;
-    source.i_visible_height = source.i_height;
-
     vout_display_t *p_display = vout_display_New(VLC_OBJECT(vout),
                                                  module, !is_wrapper,
                                                  &source, cfg, &owner);