[gnome-dvb-daemon] Fixed Gst.Iterator.find_custom



commit d22666ed88c8eebbf00e5987b4cb10b2e51941e4
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Sat Oct 12 22:22:34 2013 +0200

    Fixed Gst.Iterator.find_custom
    
    Requires patch from https://bugzilla.gnome.org/show_bug.cgi?id=685231

 src/ChannelFactory.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ChannelFactory.vala b/src/ChannelFactory.vala
index 4325ec0..2e8da72 100644
--- a/src/ChannelFactory.vala
+++ b/src/ChannelFactory.vala
@@ -246,7 +246,7 @@ namespace DVB {
             return bin;
         }
 
-        private static int find_element (void* av, void *bv) {
+        private static int find_element (GLib.Value av, Gst.Element bv) {
             Gst.Element a = (Gst.Element)av;
             Gst.Element b = (Gst.Element)bv;
             if (a == b) return 0;
@@ -267,8 +267,8 @@ namespace DVB {
                 if (celems != null) {
                     foreach (Gst.Element sink_bin in celems.sinks) {
                         Gst.Iterator it = ((Gst.Bin)sink_bin).iterate_elements ();
-                        Gst.Element element = it.find_custom (find_element, sink);
-                        if (element != null) {
+                        GLib.Value elem;
+                        if (it.find_custom<Gst.Element> (find_element, out elem, sink)) {
                             result = sink_bin;
                             break;
                         }


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