summaryrefslogtreecommitdiff
path: root/gst/gstcompat.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-12-07 18:14:38 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2010-12-07 18:14:38 +0100
commitb2ab72b916dfcd70a8ee33963d25412cd1438d53 (patch)
tree80b77f5fe0b74776dda30abfcaf3d61631e86df5 /gst/gstcompat.h
parent43470edb2dc578b368da9aa937366dea7b875926 (diff)
pad: remove get_caps_reffed variants
Make the _get_caps functions behave like the _get_caps_reffed variants and remove the _reffed variants. This means that _get_caps doesn't return a writable caps anymore and an explicit _make_writable() is needed before modifying the caps.
Diffstat (limited to 'gst/gstcompat.h')
-rw-r--r--gst/gstcompat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstcompat.h b/gst/gstcompat.h
index d1877d55a..07f5cc23e 100644
--- a/gst/gstcompat.h
+++ b/gst/gstcompat.h
@@ -44,6 +44,8 @@ G_BEGIN_DECLS
#define gst_element_factory_get_documentation_uri(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_DOC_URI)
#define gst_element_factory_get_icon_name(f) gst_element_factory_get_metadata(f, GST_ELEMENT_METADATA_ICON_NAME)
+#define gst_pad_get_caps_reffed(p) gst_pad_get_caps(p)
+#define gst_pad_peer_get_caps_reffed(p) gst_pad_peer_get_caps(p)
#ifndef GST_DISABLE_DEPRECATED