rdtdepay: make buffer metadata writable before setting caps on it

Fixes issue when the header buffer is being pushed, which was taken
from the caps and is therefore not writable.
This commit is contained in:
Tim-Philipp Müller 2011-12-09 15:25:21 +00:00
parent 895b88760f
commit 15cd0c5e36

View file

@ -292,6 +292,7 @@ gst_rdt_depay_push (GstRDTDepay * rdtdepay, GstBuffer * buffer)
rdtdepay->need_newsegment = FALSE;
}
buffer = gst_buffer_make_metadata_writable (buffer);
gst_buffer_set_caps (buffer, GST_PAD_CAPS (rdtdepay->srcpad));
if (rdtdepay->discont) {