[gnome-dvb-daemon/gst-1.0] Fixed Gst.Iterator.find_custom
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-dvb-daemon/gst-1.0] Fixed Gst.Iterator.find_custom
- Date: Sun, 13 Oct 2013 10:42:23 +0000 (UTC)
commit fdfd28b2970e18ea7f2a8154d366645db5226ad7
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]