baseparse: put buffer in a correct state after gst_adapter_get_buffer call
authorArnaud Vrac <avrac@freebox.fr>
Wed, 8 Jul 2015 10:00:56 +0000 (12:00 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 8 Jul 2015 10:33:37 +0000 (13:33 +0300)
commitea8cabe084e9f287ebe808c16ba4761c086391c6
tree153ce8625f3372913fcc7738e0be04e822b76846
parent0728b219b92d2daa704756e89a6bc3966c69c8ab
baseparse: put buffer in a correct state after gst_adapter_get_buffer call

We must make the buffer writable to write its PTS and DTS, and also
reset its duration.

The behaviour is now the same as before commit c3bcbadd, except metas
might still be attached to the buffer extracted from the adapter.

https://bugzilla.gnome.org/show_bug.cgi?id=752092
libs/gst/base/gstbaseparse.c