rygel r438 - trunk/src/rygel



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

Log:
Flush the AsyncQueue when the stream ends.

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:33:29 2009
@@ -63,6 +63,11 @@
 
     public override void end (bool aborted) {
         this.pipeline.set_state (State.NULL);
+        // Flush the queue of buffers
+        Buffer buffer = null;
+        do {
+            buffer = this.buffers.try_pop ();
+        } while (buffer != null);
 
         base.end (aborted);
     }



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