ext/ogg/gstoggmux.c (gst_ogg_mux_push_buffer): Set caps on buffers being pushed out. Fixes oggmux ! multifdsink.

Original commit message from CVS:
2006-04-06  Andy Wingo  <wingo@pobox.com>

* ext/ogg/gstoggmux.c (gst_ogg_mux_push_buffer): Set caps on
buffers being pushed out. Fixes oggmux ! multifdsink.
This commit is contained in:
Andy Wingo 2006-04-06 10:50:14 +00:00
parent e330b2ed88
commit 2a9a1bcfdc
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-04-06 Andy Wingo <wingo@pobox.com>
* ext/ogg/gstoggmux.c (gst_ogg_mux_push_buffer): Set caps on
buffers being pushed out. Fixes oggmux ! multifdsink.
2006-04-05 Tim-Philipp Müller <tim at centricular dot net>
* ext/vorbis/vorbisdec.c: (gst_vorbis_dec_class_init),

2
common

@ -1 +1 @@
Subproject commit cbedff4d5f090d43fdeaa189748a6651f2c6a07f
Subproject commit 623fe1c2cce45bc30d5823c05716349874ae994e

View file

@ -507,11 +507,17 @@ gst_ogg_mux_buffer_from_page (GstOggMux * mux, ogg_page * page, gboolean delta)
static GstFlowReturn
gst_ogg_mux_push_buffer (GstOggMux * mux, GstBuffer * buffer)
{
GstCaps *caps;
/* fix up OFFSET and OFFSET_END again */
GST_BUFFER_OFFSET (buffer) = mux->offset;
mux->offset += GST_BUFFER_SIZE (buffer);
GST_BUFFER_OFFSET_END (buffer) = mux->offset;
caps = gst_pad_get_negotiated_caps (mux->srcpad);
gst_buffer_set_caps (buffer, caps);
gst_caps_unref (caps);
return gst_pad_push (mux->srcpad, buffer);
}