Pick the patch: 1. 0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch
Signed-off-by: Pooja Prajod <[email protected]> --- ...aylandsink-Fix-scale-up-with-padded-video.patch | 39 ++++++++++++++++++++++ .../gstreamer1.0-plugins-bad_1.8.3.bbappend | 3 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch diff --git a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch new file mode 100644 index 0000000..cbedca7 --- /dev/null +++ b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch @@ -0,0 +1,39 @@ +From 20fd1ae415683168b2dc5ad707ea422c67429578 Mon Sep 17 00:00:00 2001 +From: Pooja Prajod <[email protected]> +Date: Fri, 12 May 2017 16:12:55 +0530 +Subject: [gst-bad] gstwaylandsink: Fix scale up with padded video + +Usecases which expects waylandsink cropping support +negotiates with padded height and width. After cropping, +the destination viewport is set with the negotiated +height and width which results in scaled up output. +To fix this the args while setting dest viewport should +be taken as the height and width present in the crop metadata + +Signed-off-by: Pooja Prajod <[email protected]> +--- + ext/wayland/wlwindow.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c +index f7e3324..decfdf8 100644 +--- a/ext/wayland/wlwindow.c ++++ b/ext/wayland/wlwindow.c +@@ -278,7 +278,13 @@ gst_wl_window_resize_video_surface (GstWlWindow * window, gboolean commit) + gst_video_sink_center_rect (src, dst, &res, TRUE); + + wl_subsurface_set_position (window->video_subsurface, res.x, res.y); +- wl_viewport_set_destination (window->video_viewport, res.w, res.h); ++ ++ if (window->display->crop) { ++ wl_viewport_set_destination (window->area_viewport, window->display->crop->width, window->display->crop->height); ++ wl_viewport_set_destination (window->video_viewport, window->display->crop->width, window->display->crop->height); ++ } else { ++ wl_viewport_set_destination (window->video_viewport, res.w, res.h); ++ } + + if (commit) { + wl_surface_damage (window->video_surface, 0, 0, res.w, res.h); +-- +1.9.1 + diff --git a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bbappend b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bbappend index 97753be..ff61132 100644 --- a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bbappend +++ b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.8.3.bbappend @@ -44,8 +44,9 @@ SRC_URI_append_omap-a15 = " \ file://0003-kmssink-add-YUYV-support.patch \ file://0001-gstwaylandsink-add-input-format-I420-support.patch \ file://0005-gstwaylandsink-Implement-callbacks-for-version-5-of-.patch \ + file://0006-gstwaylandsink-Fix-scale-up-with-padded-video.patch \ " PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r4" +PR = "r5" -- 1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
