[PATCH spice-gtk 1/2] gstreamer: Use the element-setup signal instead of deep-element-added

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

 



Its functionally is equivalent to connecting to the deep-element-added
signal, but a bit more convenient

Signed-off-by: Snir Sheriber <ssheribe@xxxxxxxxxx>
---
 src/channel-display-gst.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/channel-display-gst.c b/src/channel-display-gst.c
index 6fccf62..437328b 100644
--- a/src/channel-display-gst.c
+++ b/src/channel-display-gst.c
@@ -471,8 +471,7 @@ sink_event_probe(GstPad *pad, GstPadProbeInfo *info, gpointer data)
 
 /* This function is called to used to set a probe on the sink */
 static void
-deep_element_added_cb(GstBin *pipeline, GstBin *bin, GstElement *element,
-                      SpiceGstDecoder *decoder)
+element_setup_cb(GstElement *pipeline, GstElement *element, SpiceGstDecoder *decoder)
 {
     /* Attach a probe to the sink to update the statistics */
     if (GST_IS_BASE_SINK(element)) {
@@ -543,7 +542,7 @@ static gboolean create_pipeline(SpiceGstDecoder *decoder)
 #endif
     }
 
-    g_signal_connect(playbin, "deep-element-added", G_CALLBACK(deep_element_added_cb), decoder);
+    g_signal_connect(playbin, "element-setup", G_CALLBACK(element_setup_cb), decoder);
     g_signal_connect(playbin, "source-setup", G_CALLBACK(app_source_setup), decoder);
 
     g_object_set(playbin,
-- 
2.21.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]