rygel r347 - in trunk/src: plugins/test rygel



Author: zeeshanak
Date: Sun Dec 14 20:22:32 2008
New Revision: 347
URL: http://svn.gnome.org/viewvc/rygel?rev=347&view=rev

Log:
Streamer rejects the stream, rather than signal handler.

Modified:
   trunk/src/plugins/test/rygel-test-item.vala
   trunk/src/rygel/rygel-streamer.vala

Modified: trunk/src/plugins/test/rygel-test-item.vala
==============================================================================
--- trunk/src/plugins/test/rygel-test-item.vala	(original)
+++ trunk/src/plugins/test/rygel-test-item.vala	Sun Dec 14 20:22:32 2008
@@ -61,7 +61,6 @@
                                       string   path) {
         if (path != this.path) {
             /* Not our path and therefore not interesting. */
-            stream.reject ();
             return;
         }
 

Modified: trunk/src/rygel/rygel-streamer.vala
==============================================================================
--- trunk/src/rygel/rygel-streamer.vala	(original)
+++ trunk/src/rygel/rygel-streamer.vala	Sun Dec 14 20:22:32 2008
@@ -92,6 +92,12 @@
         var stream = new Stream (server, msg);
 
         this.stream_available (stream, stream_path);
+
+        if (!stream.accepted ()) {
+            /* No body accepted the stream. */
+            stream.reject ();
+            return;
+        }
     }
 }
 



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