core: Fix LiveResponse wrt latest async changes
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 24 Oct 2009 15:46:17 +0000 (18:46 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 24 Oct 2009 15:46:17 +0000 (18:46 +0300)
src/rygel/rygel-live-response.vala

index 102a6a0..06767e0 100644 (file)
@@ -40,6 +40,8 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
 
     private HTTPSeek time_range;
 
+    private SourceFunc continuation;
+
     public LiveResponse (Soup.Server  server,
                          Soup.Message msg,
                          string       name,
@@ -63,6 +65,10 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
         } else {
             this.pipeline.set_state (State.PLAYING);
         }
+
+        this.continuation = run.callback;
+
+        yield;
     }
 
     public override void end (bool aborted, uint status) {
@@ -78,6 +84,8 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
         }
 
         base.end (aborted, status);
+
+        this.continuation ();
     }
 
     private void prepare_pipeline (string name,