diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c
index d7c9808..b0fdfbc 100644
--- a/gst-libs/gst/video/gstvideometa.c
+++ b/gst-libs/gst/video/gstvideometa.c
@@ -434,6 +434,47 @@ gst_video_crop_meta_init (GstMeta * meta, gpointer params, GstBuffer * buffer)
   return TRUE;
 }
 
+/**
+ * gst_buffer_get_video_crop_meta:
+ * @buffer: a #GstBuffer
+ *
+ * Find the #GstVideoCropMeta on @buffer.
+ *
+ * Returns: (transfer none): the #GstVideoCropMeta or %NULL when there
+ * is no such metadata on @buffer.
+ */
+GstVideoCropMeta *
+gst_buffer_get_video_crop_meta (GstBuffer * buffer)
+{
+  return (GstVideoCropMeta *)
+      gst_buffer_get_meta (buffer, GST_VIDEO_CROP_META_API_TYPE);
+}
+
+/**
+ * gst_buffer_set_video_crop_meta:
+ * @meta: a #GstMeta
+ * @x: the x
+ * @y: the y
+ * @width: the width
+ * @height: the height
+ *
+ * Set field in GstVideoCropMeta metadata with the given parameters.
+ *
+ * Returns: TRUE if the operation was successful.
+ */
+gboolean
+gst_buffer_set_video_crop_meta (GstMeta * meta,
+    guint x, guint y, guint width, guint height)
+{
+  GstVideoCropMeta *emeta = (GstVideoCropMeta *) meta;
+
+  emeta->x = x;
+  emeta->y = y;
+  emeta->width = width;
+  emeta->height = height;
+  return TRUE;
+}
+
 const GstMetaInfo *
 gst_video_crop_meta_get_info (void)
 {
diff --git a/gst-libs/gst/video/gstvideometa.h b/gst-libs/gst/video/gstvideometa.h
index deb793d..c6cdd38 100644
--- a/gst-libs/gst/video/gstvideometa.h
+++ b/gst-libs/gst/video/gstvideometa.h
@@ -114,7 +114,9 @@ struct _GstVideoCropMeta {
 GType gst_video_crop_meta_api_get_type (void);
 const GstMetaInfo * gst_video_crop_meta_get_info (void);
 
-#define gst_buffer_get_video_crop_meta(b) ((GstVideoCropMeta*)gst_buffer_get_meta((b),GST_VIDEO_CROP_META_API_TYPE))
+GstVideoCropMeta * gst_buffer_get_video_crop_meta (GstBuffer      *buffer);
+gboolean gst_buffer_set_video_crop_meta (GstMeta * meta, guint x, guint y, guint width, guint height);
+
 #define gst_buffer_add_video_crop_meta(b) ((GstVideoCropMeta*)gst_buffer_add_meta((b),GST_VIDEO_CROP_META_INFO, NULL))
 
 /* video metadata transforms */
