ext/soup/gstsouphttpsrc.c: Actually set the icy caps on our src pad if we have icecas...
authorSebastian Dröge <slomo@circular-chaos.org>
Sat, 22 Mar 2008 18:18:46 +0000 (18:18 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sat, 22 Mar 2008 18:18:46 +0000 (18:18 +0000)
Original commit message from CVS:
* ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_chunk_allocator):
Actually set the icy caps on our src pad if we have icecast data.
Fixes bug #523854.

ext/soup/gstsouphttpsrc.c

index f5ba250..6c43aab 100644 (file)
@@ -731,6 +731,7 @@ gst_soup_http_src_chunk_allocator (SoupMessage * msg, gsize max_len,
 
   rc = gst_pad_alloc_buffer (GST_BASE_SRC_PAD (basesrc),
       GST_BUFFER_OFFSET_NONE, length,
+      src->icy_caps ? src->icy_caps :
       GST_PAD_CAPS (GST_BASE_SRC_PAD (basesrc)), &gstbuf);
   if (G_UNLIKELY (rc != GST_FLOW_OK)) {
     /* Failed to allocate buffer. Stall SoupSession and return error code