[0.11] gst-plugins-base: multifdsink: use pad caps for streamheader

Wim Taymans wtay at kemper.freedesktop.org
Wed Jan 4 08:58:40 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: 24d405b6092c503728925e7b7fd950d5a51e7cf3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=24d405b6092c503728925e7b7fd950d5a51e7cf3

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Wed Jan  4 17:57:39 2012 +0100

multifdsink: use pad caps for streamheader

Instead of using the caps on the buffer, use the caps on the pad.

---

 gst/tcp/gstmultifdsink.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c
index 7110574..6f72a08 100644
--- a/gst/tcp/gstmultifdsink.c
+++ b/gst/tcp/gstmultifdsink.c
@@ -1307,13 +1307,10 @@ gst_multi_fd_sink_client_queue_buffer (GstMultiFdSink * sink,
   gboolean send_streamheader = FALSE;
   GstStructure *s;
 
-#if 0
   /* before we queue the buffer, we check if we need to queue streamheader
    * buffers (because it's a new client, or because they changed) */
-  caps = gst_buffer_get_caps (buffer);  /* cleaned up after streamheader */
-#else
-  caps = NULL;
-#endif
+  caps = gst_pad_get_current_caps (GST_BASE_SINK_PAD (sink));
+
   if (!client->caps) {
     GST_DEBUG_OBJECT (sink,
         "[fd %5d] no previous caps for this client, send streamheader",



More information about the gstreamer-commits mailing list