From d2d26594f9b39f142f8a706fe54be10cefb8255d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 20 Mar 2006 18:34:21 +0000 Subject: [PATCH] gst/matroska/ebml-write.c: Ensure that we set correct caps on buffers that are transferred direct from the input. Original commit message from CVS: * gst/matroska/ebml-write.c: (gst_ebml_write_element_push): Ensure that we set correct caps on buffers that are transferred direct from the input. --- ChangeLog | 6 ++++++ gst/matroska/ebml-write.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 978a44b587..d0294cdd1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-20 Jan Schmidt + + * gst/matroska/ebml-write.c: (gst_ebml_write_element_push): + Ensure that we set correct caps on buffers that are transferred + direct from the input. + 2006-03-20 Jan Schmidt * gst/goom/filters.c: (zoomFilterDestroy): diff --git a/gst/matroska/ebml-write.c b/gst/matroska/ebml-write.c index a834f8fc11..e6817e46fd 100644 --- a/gst/matroska/ebml-write.c +++ b/gst/matroska/ebml-write.c @@ -367,6 +367,8 @@ gst_ebml_write_element_push (GstEbmlWrite * ebml, GstBuffer * buf) if (gst_pad_push_event (ebml->srcpad, ev)) ebml->need_newsegment = FALSE; } + buf = gst_buffer_make_metadata_writable (buf); + gst_buffer_set_caps (buf, GST_PAD_CAPS (ebml->srcpad)); ebml->last_write_result = gst_pad_push (ebml->srcpad, buf); } }