diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-11-21 23:12:12 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-11-25 14:59:03 -0500 |
commit | 02df3a47b3388e6924a4d36d78a10d83cdfba69f (patch) | |
tree | 0675d24e10ebcc5427f48a37ba1984455cad49d5 | |
parent | 9bbd5ef722904d5fb7009da77b1e09a5b9dfc713 (diff) |
waylandsink: Allocate only what's needed when copying
There was this regression that we'd be using the updated video
info size instead of default size when initializing the pool.
https://bugzilla.gnome.org/show_bug.cgi?id=790057
-rw-r--r-- | ext/wayland/gstwaylandsink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c index 9fc5ece51..c059c0460 100644 --- a/ext/wayland/gstwaylandsink.c +++ b/ext/wayland/gstwaylandsink.c @@ -726,6 +726,9 @@ gst_wayland_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer) config = gst_buffer_pool_get_config (sink->pool); gst_buffer_pool_config_get_params (config, &caps, NULL, NULL, NULL); + + /* revert back to default strides and offsets */ + gst_video_info_from_caps (&sink->video_info, caps); gst_buffer_pool_config_set_params (config, caps, sink->video_info.size, 2, 0); |