[rygel] core: Fix LiveResponse wrt latest async changes



commit cdf1108a18ce139a4428530b6e2f4579dbce69e0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Oct 24 18:46:17 2009 +0300

    core: Fix LiveResponse wrt latest async changes

 src/rygel/rygel-live-response.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-live-response.vala b/src/rygel/rygel-live-response.vala
index 102a6a0..06767e0 100644
--- a/src/rygel/rygel-live-response.vala
+++ b/src/rygel/rygel-live-response.vala
@@ -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,



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