gst/tcp/gstmultifdsink.c: If caps change, then update the client's idea of the caps...
authorMichael Smith <msmith@xiph.org>
Fri, 20 Oct 2006 13:54:19 +0000 (13:54 +0000)
committerMichael Smith <msmith@xiph.org>
Fri, 20 Oct 2006 13:54:19 +0000 (13:54 +0000)
Original commit message from CVS:
* gst/tcp/gstmultifdsink.c:
(gst_multi_fd_sink_client_queue_buffer):
If caps change, then update the client's idea of the caps so that we
don't end up re-sending streamheaders for every single buffer after
the caps change.

ChangeLog
gst/tcp/gstmultifdsink.c

index 07addb5..cfb7cf9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2006-10-20  Michael Smith  <msmith@fluendo.com>
 
+       * gst/tcp/gstmultifdsink.c:
+       (gst_multi_fd_sink_client_queue_buffer):
+         If caps change, then update the client's idea of the caps so that we
+         don't end up re-sending streamheaders for every single buffer after
+         the caps change.
+
+2006-10-20  Michael Smith  <msmith@fluendo.com>
+
        * ext/ogg/gstoggparse.c: (gst_ogg_parse_dispose),
        (gst_ogg_parse_append_header), (gst_ogg_parse_chain):
          Set caps on pushed buffers; fix up refcounting of caps objects.
index e48f240..6ca8026 100644 (file)
@@ -1166,6 +1166,9 @@ gst_multi_fd_sink_client_queue_buffer (GstMultiFdSink * sink,
         }
       }
     }
+    /* Replace the old caps */
+    gst_caps_unref (client->caps);
+    client->caps = gst_caps_ref (caps);
   }
 
   if (G_UNLIKELY (send_streamheader)) {