<br><br>On Tuesday, November 26, 2013, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hello,<br>
<br>
On Tue, 26 Nov 2013 14:21:30 +0100, Felix Abecassis<br>
<<a href="javascript:;" onclick="_e(event, 'cvml', 'felix.abecassis@gmail.com')">felix.abecassis@gmail.com</a>> wrote:<br>
> From: Vittorio Giovara <<a href="javascript:;" onclick="_e(event, 'cvml', 'vittorio.giovara@gmail.com')">vittorio.giovara@gmail.com</a>><br>
><br>
> ---<br>
> src/video_output/display.c | 7 +------<br>
> 1 file changed, 1 insertion(+), 6 deletions(-)<br>
><br>
> diff --git a/src/video_output/display.c b/src/video_output/display.c<br>
> index 33734f1..2cc0e06 100644<br>
> --- a/src/video_output/display.c<br>
> +++ b/src/video_output/display.c<br>
> @@ -1292,14 +1292,9 @@ static vout_display_t *DisplayNew(vout_thread_t<br>
> *vout,<br>
> }<br>
> owner.sys = osys;<br>
><br>
> - /* */<br>
> + /* keep a reference to the source before display */<br>
> video_format_t source = *source_org;<br>
><br>
> - source.i_x_offset = 0;<br>
> - source.i_y_offset = 0;<br>
> - source.i_visible_width = source.i_width;<br>
> - source.i_visible_height = source.i_height;<br>
> -<br>
> vout_display_t *p_display = vout_display_New(VLC_OBJECT(vout),<br>
> module, !is_wrapper,<br>
> &source, cfg, &owner);<br>
<br>
There is no point left copying the structure if you do not modify it.<br>
<br></blockquote><div><br></div><div>Right, however source after this point is widely used and didn't want to bring in unrelated changes.</div><div><br></div><div>I'll post a separate patch soon.</div><div><br></div>
<div>Vittorio<span></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--<br>
Rémi Denis-Courmont<br>
Sent from my collocated server<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</blockquote>