From 426eb6f9f2bdefe8af8e759d86fb297a6972eae7 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Tue, 13 Jan 2009 14:32:44 +0000 Subject: [PATCH] Better error handling. Stream should end itself if pads/elements don't get linked. svn path=/trunk/; revision=426 --- src/rygel/rygel-gst-stream.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rygel/rygel-gst-stream.vala b/src/rygel/rygel-gst-stream.vala index 231690b..a8d85f4 100644 --- a/src/rygel/rygel-gst-stream.vala +++ b/src/rygel/rygel-gst-stream.vala @@ -113,6 +113,8 @@ public class Rygel.GstStream : Rygel.Stream { critical ("Failed to link %s to %s", depay.name, sink.name); + this.end (); + return; } sink_pad = depay.get_compatible_pad (src_pad, caps); @@ -125,6 +127,7 @@ public class Rygel.GstStream : Rygel.Stream { src_pad.name, sink_pad.name); this.end (); + return; } if (depay != null) { -- 2.7.4