rygel r426 - trunk/src/rygel



Author: zeeshanak
Date: Tue Jan 13 14:32:44 2009
New Revision: 426
URL: http://svn.gnome.org/viewvc/rygel?rev=426&view=rev

Log:
Better error handling.

Stream should end itself if pads/elements don't get linked.

Modified:
   trunk/src/rygel/rygel-gst-stream.vala

Modified: trunk/src/rygel/rygel-gst-stream.vala
==============================================================================
--- trunk/src/rygel/rygel-gst-stream.vala	(original)
+++ trunk/src/rygel/rygel-gst-stream.vala	Tue Jan 13 14:32:44 2009
@@ -113,6 +113,8 @@
                 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 @@
                       src_pad.name,
                       sink_pad.name);
             this.end ();
+            return;
         }
 
         if (depay != null) {



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