mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
docs: update porting-to-0.11.txt a little
This commit is contained in:
parent
4feb6c3989
commit
27f84b728b
1 changed files with 16 additions and 0 deletions
|
@ -60,6 +60,10 @@ The 0.11 porting guide
|
||||||
|
|
||||||
gst_element_class_add_pad_template() takes ownership of the template
|
gst_element_class_add_pad_template() takes ownership of the template
|
||||||
|
|
||||||
|
gst_element_class_add_static_pad_template (element_class, &src_template)
|
||||||
|
=> gst_element_class_add_pad_template (element_class,
|
||||||
|
gst_static_pad_template_get (&src_template));
|
||||||
|
|
||||||
Elements that change the duration must post DURATION messages on the
|
Elements that change the duration must post DURATION messages on the
|
||||||
bus when the duration changes in PAUSED or PLAYING.
|
bus when the duration changes in PAUSED or PLAYING.
|
||||||
|
|
||||||
|
@ -329,6 +333,18 @@ The 0.11 porting guide
|
||||||
|
|
||||||
GST_VIDEO_CAPS_xxx -> GST_VIDEO_CAPS_MAKE(xxx)
|
GST_VIDEO_CAPS_xxx -> GST_VIDEO_CAPS_MAKE(xxx)
|
||||||
|
|
||||||
|
Some caps functions now take ownership of the input argument, for
|
||||||
|
efficiency reasons (to avoid unnecessary copies to make them writable):
|
||||||
|
|
||||||
|
gst_caps_normalize (caps) => caps = gst_caps_normalize (caps)
|
||||||
|
gst_caps_do_simplify (caps) => caps = gst_caps_simplify (caps)
|
||||||
|
gst_caps_merge (caps,caps2) => caps = gst_caps_merge (caps,caps2)
|
||||||
|
gst_caps_merge_structure (caps,st) => caps = gst_caps_merge_structure (caps,st)
|
||||||
|
gst_caps_truncate (caps) => caps = gst_caps_truncate (caps)
|
||||||
|
|
||||||
|
The compiler should warn about unused return values from these functions,
|
||||||
|
which may help find the places that need to be updated.
|
||||||
|
|
||||||
* GstSegment
|
* GstSegment
|
||||||
abs_rate was removed from the public fields, it can be trivially calculated
|
abs_rate was removed from the public fields, it can be trivially calculated
|
||||||
from the rate field.
|
from the rate field.
|
||||||
|
|
Loading…
Reference in a new issue