gst-amlv4l2videodec: CF1 send custom sticky event for secure flow [1/2]

PD#SWPL-86011

Problem:
send custom sticky event for secure flow

Solution:
(detail info)

Verify:
(detail info)

Change-Id: I3a12872365ac64b917b48649ec5e2287df0f6a42
Signed-off-by: xuesong.jiang <xuesong.jiang@amlogic.com>
diff --git a/src/gstamlv4l2videodec.c b/src/gstamlv4l2videodec.c
index c6413ce..31887f8 100644
--- a/src/gstamlv4l2videodec.c
+++ b/src/gstamlv4l2videodec.c
@@ -467,6 +467,18 @@
 {
     GstAmlV4l2VideoDec *self = GST_AML_V4L2_VIDEO_DEC(decoder);
 
+    if (TRUE == self->v4l2output->is_svp)
+    {
+        GstStructure *s;
+        GstEvent *event;
+
+        s = gst_structure_new_empty ("IS_SVP");
+        event = gst_event_new_custom (GST_EVENT_CUSTOM_DOWNSTREAM_STICKY, s);
+        GST_DEBUG_OBJECT(self, "before Send SVP Event :%p", event);
+        gst_pad_push_event (decoder->srcpad, event);
+        GST_DEBUG_OBJECT(self, "after Send SVP Event :%p", event);
+    }
+
     /* We don't allow renegotiation without carefull disabling the pool */
     if (self->v4l2capture->pool &&
         gst_buffer_pool_is_active(GST_BUFFER_POOL(self->v4l2capture->pool)))