live-response: fix first seek always failing
authorRené Stadler <mail@renestadler.de>
Thu, 24 Sep 2009 20:30:22 +0000 (23:30 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 25 Sep 2009 11:05:35 +0000 (14:05 +0300)
State change messages are signalled also for all child elements. If they are
not filtered out, the initial seek is issued way too early.

src/rygel/rygel-live-response.vala

index 3d17554..b673f2f 100644 (file)
@@ -235,6 +235,10 @@ internal class Rygel.LiveResponse : Rygel.HTTPResponse {
         if (message.type == MessageType.EOS) {
             ret = false;
         } else if (message.type == MessageType.STATE_CHANGED) {
+            if (message.src != this.pipeline) {
+                return true;
+            }
+
             if (this.time_range != null && this.time_range.start > 0) {
                 State old_state;
                 State new_state;