mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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
This commit is contained in:
parent
9bbd5ef722
commit
02df3a47b3
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue