ristsrc: Add ristrtpdeext to the pipeline
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 29 Jul 2019 21:53:21 +0000 (17:53 -0400)
committerOlivier Crête <olivier.crete@ocrete.ca>
Thu, 30 Apr 2020 18:31:32 +0000 (18:31 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1153>

gst/rist/gstristsrc.c

index 56a5e39..349fcd2 100644 (file)
@@ -123,6 +123,7 @@ struct _GstRistSrc
   GstPad *srcpad;
   GstElement *rtxbin;
   GstElement *rtx_funnel;
+  GstElement *rtpdeext;
 
   /* Common properties, protected by bonds_lock */
   guint reorder_section;
@@ -438,7 +439,11 @@ gst_rist_src_init (GstRistSrc * src)
   src->rtx_funnel = gst_element_factory_make ("funnel", "rist_rtx_funnel");
   gst_bin_add (GST_BIN (src->rtxbin), src->rtx_funnel);
 
-  pad = gst_element_get_static_pad (src->rtx_funnel, "src");
+  src->rtpdeext = gst_element_factory_make ("ristrtpdeext", "rist_rtp_de_ext");
+  gst_bin_add (GST_BIN (src->rtxbin), src->rtpdeext);
+  gst_element_link (src->rtx_funnel, src->rtpdeext);
+
+  pad = gst_element_get_static_pad (src->rtpdeext, "src");
   gpad = gst_ghost_pad_new ("src_0", pad);
   gst_object_unref (pad);
   gst_element_add_pad (src->rtxbin, gpad);