gst/gstbuffer.c: Copy duration/offset_end/caps when creating a subbuffer of the compl...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 21 Aug 2006 09:30:04 +0000 (09:30 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 21 Aug 2006 09:30:04 +0000 (09:30 +0000)
commit87a78cc03db999902bd659cb2189dc8cc173653c
tree195da43243b3119cd215f89e93b1831d122b05e7
parent4abd3fb116979e75ca84492b1d4596f0d36cf736
gst/gstbuffer.c: Copy duration/offset_end/caps when creating a subbuffer of the complete parent.

Original commit message from CVS:
* gst/gstbuffer.c: (gst_buffer_make_metadata_writable),
(gst_buffer_create_sub):
Copy duration/offset_end/caps when creating a subbuffer of the
complete parent.
Make the subbuffer read-only when we make the metadata writable for
now. Fixes #351768.
* tests/check/gst/gstbuffer.c: (GST_START_TEST):
Added check for metadata copy when creating subbuffers.
ChangeLog
gst/gstbuffer.c
tests/check/gst/gstbuffer.c