[gtk/wip/gstmediafile-input] Add a ghost pad



commit bc87da771f0882b56a283da7119e20919ddf2f14
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 18 09:44:23 2021 -0400

    Add a ghost pad
    
    It sounds cool. But it still doesn't work :(

 modules/media/gtkgstbin.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/modules/media/gtkgstbin.c b/modules/media/gtkgstbin.c
index 56680c1d1d..ee4456c7da 100644
--- a/modules/media/gtkgstbin.c
+++ b/modules/media/gtkgstbin.c
@@ -85,6 +85,10 @@ gtk_gst_bin_init (GtkGstBin *self)
   self->src = gst_element_factory_make ("giostreamsrc", "src");
   g_object_ref_sink (self->src);
   gst_bin_add (GST_BIN (self), self->src);
+
+  gst_element_add_pad (GST_ELEMENT (self),
+                       gst_ghost_pad_new ("src", gst_element_get_static_pad (self->src, "src")));
+
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]