+#define gst_buffer_new_and_alloc(s) gst_buffer_new_allocate(NULL, s, NULL)
+
+#define GST_BUFFER_TIMESTAMP GST_BUFFER_PTS
+#define GST_BUFFER_TIMESTAMP_IS_VALID GST_BUFFER_PTS_IS_VALID
+
+static inline gboolean
+gst_pad_set_caps (GstPad * pad, GstCaps * caps)
+{
+ GstEvent *event;
+ gboolean res = TRUE;
+
+ g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
+ g_return_val_if_fail (caps != NULL && gst_caps_is_fixed (caps), FALSE);
+
+ event = gst_event_new_caps (caps);
+
+ if (GST_PAD_IS_SRC (pad))
+ res = gst_pad_push_event (pad, event);
+ else
+ res = gst_pad_send_event (pad, event);
+
+ return res;
+}
+
+
+#ifndef GST_DISABLE_DEPRECATED
+