baseparse: make GstBaseParseFrame handling more bindings-friendly
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 15 Apr 2011 16:41:02 +0000 (17:41 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 15 Apr 2011 16:50:46 +0000 (17:50 +0100)
commite8ccbf4ca994bbf6472482b8be7deafba60120f2
tree5c1bb687c31796a95fe5abbb8c4ac9b4f45588cb
parent37d7857e1880fa3d9666b8e26bb9080aa899c2fb
baseparse: make GstBaseParseFrame handling more bindings-friendly

Change semantics of gst_base_parse_push_frame() and make it take
ownership of the whole frame, not just the frame contents. This
is more in line with how gst_pad_push() etc. work. Just transfering
the content, but not the container of something that's not really
known to be a container is hard to annotate properly and probably
won't work. We mark frames allocated on the stack now with a private
flag in gst_base_parse_frame_init(), so gst_base_parse_frame_free()
only frees the contents in that case but not the frame struct itself.

https://bugzilla.gnome.org/show_bug.cgi?id=518857

API: gst_base_parse_frame_new()
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbaseparse.h