All of lore.kernel.org
 help / color / mirror / Atom feed
From: sidraya.bj@pathpartnertech.com
To: meta-arago@lists.yoctoproject.org
Cc: denis@denix.org, yogeshs@ti.com, praneeth@ti.com, d-huang@ti.com,
	prashanth.ka@pathpartnertech.com, praveen.ap@pathpartnertech.com,
	Sidraya <sidraya.bj@pathpartnertech.com>
Subject: [PATCH v2] Avoiding Failure to allocate required memory error.
Date: Thu, 18 Nov 2021 10:58:28 +0530	[thread overview]
Message-ID: <20211118052828.15859-1-sidraya.bj@pathpartnertech.com> (raw)

From: Sidraya <sidraya.bj@pathpartnertech.com>

max variable is setting 32 constant which
leads to following error
"ERROR: from element /GstPipeline:pipeline0/v4l2h265dec:v4l2h265dec0:
Failed to allocate required memory."

Signed-off-by: Sidraya <sidraya.bj@pathpartnertech.com>
Tested-by: Sidraya <sidraya.bj@pathpartnertech.com>
---
Added Tested-by line

 ...-Failure-to-allocate-required-memory.patch | 34 +++++++++++++++++++
 .../gstreamer1.0-plugins-good_1.16.%.bbappend |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Avoiding-Failure-to-allocate-required-memory.patch

diff --git a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Avoiding-Failure-to-allocate-required-memory.patch b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Avoiding-Failure-to-allocate-required-memory.patch
new file mode 100644
index 00000000..f886f06b
--- /dev/null
+++ b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Avoiding-Failure-to-allocate-required-memory.patch
@@ -0,0 +1,34 @@
+From 356b8a2bbfef8e05ea3f8757e6bd357c268ad748 Mon Sep 17 00:00:00 2001
+From: Sidraya Jayagond <sidraya.bj@pathpartnertech.com>
+Date: Wed, 10 Mar 2021 16:31:38 +0530
+Subject: [PATCH] [gst-plugins-good 1.16.3] Avoiding Failure to allocate required memory error.
+
+max variable is setting 32 which leads to following error
+"ERROR: from element /GstPipeline:pipeline0/v4l2h265dec:v4l2h265dec0:
+Failed to allocate required memory."
+
+Upstream-Status: Pending
+
+Signed-off-by: Sidraya Jayagond <sidraya.bj@pathpartnertech.com>
+---
+ sys/v4l2/gstv4l2videodec.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c
+index adb620d79..c1deb8896 100644
+--- a/sys/v4l2/gstv4l2videodec.c
++++ b/sys/v4l2/gstv4l2videodec.c
+@@ -611,10 +611,9 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
+     if (!gst_buffer_pool_is_active (pool)) {
+       GstStructure *config = gst_buffer_pool_get_config (pool);
+       guint min = MAX (self->v4l2output->min_buffers, GST_V4L2_MIN_BUFFERS);
+-      guint max = VIDEO_MAX_FRAME;
+
+       gst_buffer_pool_config_set_params (config, self->input_state->caps,
+-          self->v4l2output->info.size, min, max);
++		      self->v4l2output->info.size, min, 2);
+
+       /* There is no reason to refuse this config */
+       if (!gst_buffer_pool_set_config (pool, config))
+--
+2.17.1
diff --git a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend
index 0c6dc81b..11513f2f 100644
--- a/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend
+++ b/meta-arago-extras/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.16.%.bbappend
@@ -9,6 +9,7 @@ SRC_URI += " \
     file://0001-v4l2src-Check-for-drm-memory-support-in-try_import.patch \
     file://0001-qmlglsink-fix-build-on-EGL-platform-without-X11-head.patch \
     file://0001-gst-plugins-good-1.16.3-v4l2h264enc-Add-Extended-con.patch \
+    file://0001-Avoiding-Failure-to-allocate-required-memory.patch \
 "
 
 PR_append = ".arago3"
-- 
2.17.1


             reply	other threads:[~2021-11-18  5:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18  5:28 sidraya.bj [this message]
2021-11-18 16:39 ` [PATCH v2] Avoiding Failure to allocate required memory error Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211118052828.15859-1-sidraya.bj@pathpartnertech.com \
    --to=sidraya.bj@pathpartnertech.com \
    --cc=d-huang@ti.com \
    --cc=denis@denix.org \
    --cc=meta-arago@lists.yoctoproject.org \
    --cc=praneeth@ti.com \
    --cc=prashanth.ka@pathpartnertech.com \
    --cc=praveen.ap@pathpartnertech.com \
    --cc=yogeshs@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.