Don't send out prerolled buffers.
authorZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 14 Dec 2008 20:22:46 +0000 (20:22 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@src.gnome.org>
Sun, 14 Dec 2008 20:22:46 +0000 (20:22 +0000)
Apparently this was causing the problems of receiving side unable to
handle (recognise and decode) the incoming stream.

svn path=/trunk/; revision=350

src/rygel/rygel-gst-stream.vala

index e597dde..1e251f9 100644 (file)
@@ -59,7 +59,6 @@ public class Rygel.GstStream : Pipeline {
 
         sink.emit_signals = true;
         sink.new_buffer += this.on_new_buffer;
-        sink.new_preroll += this.on_new_preroll;
 
         this.add_many (src, sink);
         src.link (sink);
@@ -77,18 +76,6 @@ public class Rygel.GstStream : Pipeline {
         this.queue_buffer (buffer);
     }
 
-    private void on_new_preroll (dynamic Element sink) {
-        Buffer buffer = null;
-
-        GLib.Signal.emit_by_name (sink, "pull-preroll", out buffer);
-        if (buffer == null) {
-            critical ("Failed to get buffer from pipeline");
-            return;
-        }
-
-        this.queue_buffer (buffer);
-    }
-
     private void queue_buffer (Buffer buffer) {
         this.buffers.push (buffer);
         Idle.add_full (Priority.HIGH_IDLE, this.idle_handler);