Remove pool from downstream 16/229516/1 accepted/tizen/unified/20200402.155421 submit/tizen/20200402.040110
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 1 Apr 2020 11:51:54 +0000 (20:51 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 1 Apr 2020 11:54:22 +0000 (20:54 +0900)
- The pool is queried if video360 element is placed after omx decoder.
  It causes buffer allocation error, so we should remove it on Tizen.

[Version] 1.16.2-3
[Profile] Common
[Issue Type] Update

Change-Id: I7d1d48913cd13505f7c8d5fb69450c652fee4c88
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
omx/gstomxvideodec.c
packaging/gst-omx.spec

index 6d3f660..bbc8271 100644 (file)
@@ -3425,6 +3425,10 @@ gst_omx_video_dec_decide_allocation (GstVideoDecoder * bdec, GstQuery * query)
   i = 0;
   while (i < gst_query_get_n_allocation_pools (query)) {
     gst_query_parse_nth_allocation_pool (query, i, &pool, NULL, NULL, NULL);
+#ifdef TIZEN_FEATURE_OMX
+    gst_query_remove_nth_allocation_pool (query, i);
+    GST_WARNING_OBJECT (self, "remove pool from downstream %u", gst_query_get_n_allocation_pools (query));
+#else /* TIZEN_FEATURE_OMX */
     if (GST_IS_OMX_BUFFER_POOL (pool)) {
       GST_DEBUG_OBJECT (self, "Discard OMX pool from downstream");
       gst_query_remove_nth_allocation_pool (query, i);
@@ -3434,6 +3438,7 @@ gst_omx_video_dec_decide_allocation (GstVideoDecoder * bdec, GstQuery * query)
       self->use_buffers = TRUE;
       i++;
     }
+#endif /* TIZEN_FEATURE_OMX */
 
     if (pool)
       gst_object_unref (pool);
index b62c8e4..f934065 100755 (executable)
@@ -1,7 +1,7 @@
 Name:           gst-omx
 Summary:        GStreamer plug-in that allows communication with OpenMAX IL components
 Version:        1.16.2
-Release:        2
+Release:        3
 License:        LGPL-2.1+
 Group:          Multimedia/Framework
 Source0:        %{name}-%{version}.tar.gz