waylandsink/wlwindow: do not commit a resize when it happens due to a video info...
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Fri, 13 Jun 2014 14:37:38 +0000 (16:37 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:30 +0000 (13:51 +0200)
commite5334a1f8b2dd8e5b6a0b0db450292b700d70ede
treef13dd863ce2dd37b65f62a5a34430074bfc282ac
parent04b0e548383dd7a4ebbe3aad2b5f9ca21241877a
waylandsink/wlwindow: do not commit a resize when it happens due to a video info change

1) We know that gst_wayland_sink_render() will commit the surface
   in the same thread a little later, as gst_wl_window_set_video_info()
   is always called from there, so we can save the compositor from
   some extra calculations.
2) We should not commit a resize with the new video info while we are still
   showing the buffer of the previous video, with the old caps, as that
   would probably be a visible resize glitch.
ext/wayland/wlwindow.c