Skip to content

Commit

Permalink
gstreamer1.0-plugins-bad: update patch to apply on 1.22.4 version
Browse files Browse the repository at this point in the history
:Release Notes:
Upgraded in:
https://git.openembedded.org/openembedded-core/commit/?id=d7bf88db7f2f55540bf7891474a3a28f5681ddbb
backported to mickledore as well in:
https://git.openembedded.org/openembedded-core/commit/?h=mickledore&id=a071696747ece93409d533a2e966cd59195a056d

:Detailed Notes:
Fixes:
http://gecko.lge.com:8000/Errors/Details/623492

ERROR: Applying patch '0004-waylandsink-remove-unsupported-subcompositor.patch' on target directory 'TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/gstreamer1.0-plugins-bad/1.22.4-r0/gst-plugins-bad-1.22.4'
CmdError('quilt --quiltrc TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/gstreamer1.0-plugins-bad/1.22.4-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0004-waylandsink-remove-unsupported-subcompositor.patch
patching file ext/wayland/gstwaylandsink.c
patching file ext/wayland/gstwaylandsink.h
patching file gst-libs/gst/wayland/gstwldisplay.c
patching file gst-libs/gst/wayland/gstwlwindow.c
Hunk webosose#3 succeeded at 167 (offset 4 lines).
Hunk webosose#4 succeeded at 187 (offset 4 lines).
Hunk webosose#5 succeeded at 197 (offset 4 lines).
Hunk webosose#6 succeeded at 207 (offset 4 lines).
Hunk webosose#7 succeeded at 216 (offset 4 lines).
Hunk webosose#8 succeeded at 271 (offset 4 lines).
Hunk webosose#9 succeeded at 283 (offset 4 lines).
Hunk webosose#10 succeeded at 303 (offset 4 lines).
Hunk webosose#11 succeeded at 318 (offset 4 lines).
Hunk webosose#12 succeeded at 348 (offset 4 lines).
Hunk webosose#13 succeeded at 387 (offset 4 lines).
Hunk webosose#14 succeeded at 402 (offset 4 lines).
Hunk webosose#15 succeeded at 435 (offset 4 lines).
Hunk webosose#16 succeeded at 458 (offset 4 lines).
Hunk webosose#17 FAILED at 476.
Hunk webosose#18 succeeded at 616 (offset 5 lines).
Hunk webosose#19 succeeded at 669 (offset 5 lines).
1 out of 19 hunks FAILED -- rejects in file gst-libs/gst/wayland/gstwlwindow.c
Patch 0004-waylandsink-remove-unsupported-subcompositor.patch does not apply (enforce with -f)

:Testing Performed:
Only build tested.

:QA Notes:
No change to image.

:Issues Addressed:
[WRP-13301] Create GPVB with Yocto 4.3 Nanbield
[WRP-412] Create GPVB with Yocto 4.2 Mickledore

Change-Id: I65381c6a3b7e0f65ceabf592d34d807972867b1c
  • Loading branch information
shr-project committed Feb 21, 2024
1 parent 1f68db4 commit 1ebbef1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From a9f370da603e3301336e8f108439a6d85337cd6f Mon Sep 17 00:00:00 2001
From 43036b2d34a7fbee1d586ae0f4c511024a5381a3 Mon Sep 17 00:00:00 2001
From: Pankaj Maharana <[email protected]>
Date: Thu, 3 Oct 2019 17:05:37 +0530
Subject: [PATCH] waylandsink: remove unsupported subcompositor
Expand Down Expand Up @@ -438,7 +438,7 @@ index 1f83cb24b7..4ed3618179 100644
gst_wl_display_get_xdg_wm_base (GstWlDisplay * self)
{
diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c
index 4aa53c3690..48d49e4b80 100644
index 6004993f58..77cec7ff8e 100644
--- a/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c
+++ b/subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c
@@ -40,13 +40,9 @@ typedef struct _GstWlWindowPrivate
Expand Down Expand Up @@ -467,15 +467,15 @@ index 4aa53c3690..48d49e4b80 100644
} GstWlWindowPrivate;

G_DEFINE_TYPE_WITH_CODE (GstWlWindow, gst_wl_window, G_TYPE_OBJECT,
@@ -163,6 +163,7 @@ gst_wl_window_init (GstWlWindow * self)
@@ -167,6 +167,7 @@ gst_wl_window_init (GstWlWindow * self)
GstWlWindowPrivate *priv = gst_wl_window_get_instance_private (self);

priv->configured = TRUE;
+ priv->internal_surface = FALSE;
g_cond_init (&priv->configure_cond);
g_mutex_init (&priv->configure_mutex);
}
@@ -182,17 +183,9 @@ gst_wl_window_finalize (GObject * gobject)
@@ -186,17 +187,9 @@ gst_wl_window_finalize (GObject * gobject)
wp_viewport_destroy (priv->video_viewport);

wl_proxy_wrapper_destroy (priv->video_surface_wrapper);
Expand All @@ -495,7 +495,7 @@ index 4aa53c3690..48d49e4b80 100644

g_clear_object (&priv->display);

@@ -200,7 +193,8 @@ gst_wl_window_finalize (GObject * gobject)
@@ -204,7 +197,8 @@ gst_wl_window_finalize (GObject * gobject)
}

static GstWlWindow *
Expand All @@ -505,7 +505,7 @@ index 4aa53c3690..48d49e4b80 100644
{
GstWlWindow *self;
GstWlWindowPrivate *priv;
@@ -209,6 +203,8 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
@@ -213,6 +207,8 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
struct wl_region *region;
struct wp_viewporter *viewporter;

Expand All @@ -514,7 +514,7 @@ index 4aa53c3690..48d49e4b80 100644
self = g_object_new (GST_TYPE_WL_WINDOW, NULL);
priv = gst_wl_window_get_instance_private (self);
priv->display = g_object_ref (display);
@@ -216,36 +212,34 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
@@ -220,36 +216,34 @@ gst_wl_window_new_internal (GstWlDisplay * display, GMutex * render_lock)
g_cond_init (&priv->configure_cond);

compositor = gst_wl_display_get_compositor (display);
Expand Down Expand Up @@ -562,7 +562,7 @@ index 4aa53c3690..48d49e4b80 100644

return self;
}
@@ -273,7 +267,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
@@ -277,7 +271,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
struct xdg_wm_base *xdg_wm_base;
struct zwp_fullscreen_shell_v1 *fullscreen_shell;

Expand All @@ -571,7 +571,7 @@ index 4aa53c3690..48d49e4b80 100644
priv = gst_wl_window_get_instance_private (self);

xdg_wm_base = gst_wl_display_get_xdg_wm_base (display);
@@ -285,7 +279,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
@@ -289,7 +283,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,

/* First create the XDG surface */
priv->xdg_surface = xdg_wm_base_get_xdg_surface (xdg_wm_base,
Expand All @@ -580,7 +580,7 @@ index 4aa53c3690..48d49e4b80 100644
if (!priv->xdg_surface) {
GST_ERROR ("Unable to get xdg_surface");
goto error;
@@ -305,7 +299,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
@@ -309,7 +303,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,

/* Finally, commit the xdg_surface state as toplevel */
priv->configured = FALSE;
Expand All @@ -589,7 +589,7 @@ index 4aa53c3690..48d49e4b80 100644
wl_display_flush (gst_wl_display_get_display (display));

g_mutex_lock (&priv->configure_mutex);
@@ -320,7 +314,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
@@ -324,7 +318,7 @@ gst_wl_window_new_toplevel (GstWlDisplay * display, const GstVideoInfo * info,
g_mutex_unlock (&priv->configure_mutex);
} else if (fullscreen_shell) {
zwp_fullscreen_shell_v1_present_surface (fullscreen_shell,
Expand All @@ -598,7 +598,7 @@ index 4aa53c3690..48d49e4b80 100644
} else {
GST_ERROR ("Unable to use either xdg_wm_base or zwp_fullscreen_shell.");
goto error;
@@ -350,20 +344,17 @@ gst_wl_window_new_in_surface (GstWlDisplay * display,
@@ -354,20 +348,17 @@ gst_wl_window_new_in_surface (GstWlDisplay * display,
GstWlWindowPrivate *priv;
struct wl_region *region;

Expand Down Expand Up @@ -626,7 +626,7 @@ index 4aa53c3690..48d49e4b80 100644

wl_surface_commit (parent);

@@ -392,17 +383,6 @@ gst_wl_window_get_wl_surface (GstWlWindow * self)
@@ -396,17 +387,6 @@ gst_wl_window_get_wl_surface (GstWlWindow * self)
return priv->video_surface_wrapper;
}

Expand All @@ -644,15 +644,15 @@ index 4aa53c3690..48d49e4b80 100644
gboolean
gst_wl_window_is_toplevel (GstWlWindow * self)
{
@@ -418,6 +398,7 @@ static void
@@ -422,6 +402,7 @@ static void
gst_wl_window_resize_video_surface (GstWlWindow * self, gboolean commit)
{
GstWlWindowPrivate *priv = gst_wl_window_get_instance_private (self);
+ struct wl_region *region;
GstVideoRectangle src = { 0, };
GstVideoRectangle dst = { 0, };
GstVideoRectangle res;
@@ -450,12 +431,18 @@ gst_wl_window_resize_video_surface (GstWlWindow * self, gboolean commit)
@@ -454,12 +435,18 @@ gst_wl_window_resize_video_surface (GstWlWindow * self, gboolean commit)
gst_video_center_rect (&src, &dst, &res, FALSE);
}

Expand All @@ -673,7 +673,7 @@ index 4aa53c3690..48d49e4b80 100644

priv->video_rectangle = res;
}
@@ -467,12 +454,7 @@ gst_wl_window_set_opaque (GstWlWindow * self, const GstVideoInfo * info)
@@ -471,12 +458,7 @@ gst_wl_window_set_opaque (GstWlWindow * self, const GstVideoInfo * info)
struct wl_compositor *compositor;
struct wl_region *region;

Expand All @@ -686,7 +686,7 @@ index 4aa53c3690..48d49e4b80 100644

if (!GST_VIDEO_INFO_HAS_ALPHA (info)) {
/* Set video opaque */
@@ -494,126 +476,34 @@ gst_wl_window_render (GstWlWindow * self, GstWlBuffer * buffer,
@@ -498,20 +480,22 @@ gst_wl_window_render (GstWlWindow * self, GstWlBuffer * buffer,
gst_util_uint64_scale_int_round (info->width, info->par_n, info->par_d);
priv->video_height = info->height;

Expand All @@ -712,8 +712,9 @@ index 4aa53c3690..48d49e4b80 100644
- wl_surface_commit (priv->area_surface_wrapper);
+ wl_surface_commit (priv->video_surface_wrapper);
priv->is_area_surface_mapped = TRUE;
g_signal_emit (self, signals[MAP], 0);
}
} else {
@@ -519,106 +503,12 @@ gst_wl_window_render (GstWlWindow * self, GstWlBuffer * buffer,
/* clear both video and parent surfaces */
wl_surface_attach (priv->video_surface_wrapper, NULL, 0, 0);
wl_surface_commit (priv->video_surface_wrapper);
Expand Down Expand Up @@ -820,7 +821,7 @@ index 4aa53c3690..48d49e4b80 100644
void
gst_wl_window_set_render_rectangle (GstWlWindow * self, gint x, gint y,
gint w, gint h)
@@ -629,7 +519,16 @@ gst_wl_window_set_render_rectangle (GstWlWindow * self, gint x, gint y,
@@ -634,7 +524,16 @@ gst_wl_window_set_render_rectangle (GstWlWindow * self, gint x, gint y,
priv->render_rectangle.w = w;
priv->render_rectangle.h = h;

Expand All @@ -838,7 +839,7 @@ index 4aa53c3690..48d49e4b80 100644
}

const GstVideoRectangle *
@@ -673,5 +572,5 @@ gst_wl_window_set_rotate_method (GstWlWindow * self,
@@ -678,5 +577,5 @@ gst_wl_window_set_rotate_method (GstWlWindow * self,

priv->buffer_transform = output_transform_from_orientation_method (method);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 8b89e464086937d437ec133221afbcf240aa0368 Mon Sep 17 00:00:00 2001
From 841a1f623712b26943f91a316e9346762fd54589 Mon Sep 17 00:00:00 2001
From: Raveendra Angadi <[email protected]>
Date: Mon, 17 Oct 2022 20:27:49 +0530
Subject: [PATCH] h264parse: resolution changed event support
Expand All @@ -13,7 +13,7 @@ Upstream-Status: Pending
3 files changed, 34 insertions(+)

diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c
index e08e3f00f5..8d8ca12fa7 100644
index 8bb47f9db7..6aea06483e 100644
--- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c
+++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c
@@ -75,6 +75,13 @@ enum
Expand Down Expand Up @@ -51,23 +51,23 @@ index e08e3f00f5..8d8ca12fa7 100644
/**
* GstH264Parse:update-timecode:
*
@@ -2045,6 +2059,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
@@ -2122,6 +2136,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
GstH264SPS *sps;
GstCaps *sink_caps, *src_caps;
gboolean modified = FALSE;
+ gboolean source_changed = FALSE;
GstBuffer *buf = NULL;
GstStructure *s = NULL;

@@ -2116,6 +2131,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
@@ -2193,6 +2208,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
h264parse->width = crop_width;
h264parse->height = crop_height;
modified = TRUE;
+ source_changed = TRUE;
}

/* 0/1 is set as the default in the codec parser, we will set
@@ -2128,8 +2144,16 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
@@ -2231,8 +2247,16 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
h264parse->fps_num = fps_num;
h264parse->fps_den = fps_den;
modified = TRUE;
Expand All @@ -85,10 +85,10 @@ index e08e3f00f5..8d8ca12fa7 100644
if (G_UNLIKELY ((h264parse->parsed_par_n != vui->par_n)
|| (h264parse->parsed_par_d != vui->par_d))) {
diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.h b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.h
index 1275dddf52..f5a46809dc 100644
index 1b6939de31..e39c46f4a8 100644
--- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.h
+++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.h
@@ -172,6 +172,9 @@ struct _GstH264Parse
@@ -173,6 +173,9 @@ struct _GstH264Parse
struct _GstH264ParseClass
{
GstBaseParseClass parent_class;
Expand Down

0 comments on commit 1ebbef1

Please sign in to comment.