gst-launch: Sink element returned from parse_bin
authorJens Georg <mail@jensge.org>
Mon, 30 Jan 2012 19:58:10 +0000 (20:58 +0100)
committerJens Georg <mail@jensge.org>
Mon, 30 Jan 2012 19:58:10 +0000 (20:58 +0100)
Work around bgo#669060 with valac >= 0.15.1

src/rygel/rygel-http-identity-handler.vala

index 0a451ac..0981bd0 100644 (file)
@@ -83,6 +83,9 @@ internal class Rygel.HTTPIdentityHandler : Rygel.HTTPGetHandler {
         } else {
             src = request.item.create_stream_source
                                         (request.http_server.context.host_ip);
+            if (src.is_floating ()) {
+                src.ref_sink ();
+            }
         }
 
         if (src == null) {