summaryrefslogtreecommitdiffstats
path: root/gst/apetag
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2006-03-15 16:21:38 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-03-15 16:21:38 +0000
commit3a636c561fcb12bf51170c0a0ffeaddf5f4d157f (patch)
tree094c63d3d9cc768594168bf1f956f5fcddb5d3b1 /gst/apetag
parent50f4eb876a9d272847e22e3349309ce3f7ac42dc (diff)
gst/apetag/gsttagdemux.c: Ensure that we set caps on the buffers we pass.
Original commit message from CVS: * gst/apetag/gsttagdemux.c: (gst_tag_demux_chain): Ensure that we set caps on the buffers we pass. * gst/id3demux/gstid3demux.c: (gst_id3demux_chain), (gst_id3demux_sink_activate): Ensure that we set caps on the buffers we pass. Use STREAM, TYPE_NOT_FOUND as the error class when typefinding fails.
Diffstat (limited to 'gst/apetag')
-rw-r--r--gst/apetag/gsttagdemux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/apetag/gsttagdemux.c b/gst/apetag/gsttagdemux.c
index 53146604..b5d9cc32 100644
--- a/gst/apetag/gsttagdemux.c
+++ b/gst/apetag/gsttagdemux.c
@@ -610,6 +610,11 @@ gst_tag_demux_chain (GstPad * pad, GstBuffer * buf)
GST_DEBUG_OBJECT (demux, "Pushing buffer %p", outbuf);
/* gst_util_dump_mem (GST_BUFFER_DATA (outbuf),
GST_BUFFER_SIZE (outbuf)); */
+
+ /* Ensure the caps are set correctly */
+ outbuf = gst_buffer_make_metadata_writable (outbuf);
+ gst_buffer_set_caps (outbuf, GST_PAD_CAPS (demux->priv->srcpad));
+
return gst_pad_push (demux->priv->srcpad, outbuf);
}
}