GNOME Bugzilla – Bug 763912
pad/utils: missing annotation for gst_pad_get_current_caps and gst_pad_peer_query_caps
Last modified: 2016-04-14 17:43:28 UTC
These functions returns an incremented refcounted caps and gst_pad_get_current_caps can returns NULL.
Created attachment 324331 [details] [review] pad: add 'transfer full' and 'nullable' annotations to gst_pad_get_current_caps
Created attachment 324332 [details] [review] utils: add 'transfer full' annotation to gst_pad_peer_query_caps
Comment on attachment 324332 [details] [review] utils: add 'transfer full' annotation to gst_pad_peer_query_caps This can also return NULL, no? But transfer full is already better than nothing ;)
(In reply to Sebastian Dröge (slomo) from comment #3) > Comment on attachment 324332 [details] [review] [review] > utils: add 'transfer full' annotation to gst_pad_peer_query_caps > > This can also return NULL, no? But transfer full is already better than > nothing ;) It can only returns NULL for programming errors (g_return_val_if_fail). Do you think we should annotate with 'nullable' for these cases ?
No, I thought it also returns NULL if the pad has no peer.
Attachment 324331 [details] pushed as b7cffa4 - pad: add 'transfer full' and 'nullable' annotations to gst_pad_get_current_caps Attachment 324332 [details] pushed as 94036e8 - utils: add 'transfer full' annotation to gst_pad_peer_query_caps