From a23271406556637aca1e3469c8f20daa3358ca19 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 28 Feb 2012 16:18:30 +0100 Subject: [PATCH] meta: add return value to transform --- gst-libs/gst/audio/gstaudiometa.c | 4 +++- gst-libs/gst/video/gstvideometa.c | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/audio/gstaudiometa.c b/gst-libs/gst/audio/gstaudiometa.c index b00b777..51a6f8b 100644 --- a/gst-libs/gst/audio/gstaudiometa.c +++ b/gst-libs/gst/audio/gstaudiometa.c @@ -46,7 +46,7 @@ gst_audio_downmix_meta_free (GstMeta * meta, GstBuffer * buffer) } } -static void +static gboolean gst_audio_downmix_meta_transform (GstBuffer * dest, GstMeta * meta, GstBuffer * buffer, GQuark type, gpointer data) { @@ -56,6 +56,8 @@ gst_audio_downmix_meta_transform (GstBuffer * dest, GstMeta * meta, gst_buffer_add_audio_downmix_meta (dest, smeta->from_position, smeta->from_channels, smeta->to_position, smeta->to_channels, (const gfloat **) smeta->matrix); + + return TRUE; } /** diff --git a/gst-libs/gst/video/gstvideometa.c b/gst-libs/gst/video/gstvideometa.c index 669c011..67f0d2b 100644 --- a/gst-libs/gst/video/gstvideometa.c +++ b/gst-libs/gst/video/gstvideometa.c @@ -19,7 +19,7 @@ #include "gstvideometa.h" -static void +static gboolean gst_video_meta_transform (GstBuffer * dest, GstMeta * meta, GstBuffer * buffer, GQuark type, gpointer data) { @@ -45,6 +45,7 @@ gst_video_meta_transform (GstBuffer * dest, GstMeta * meta, dmeta->stride[i] = smeta->stride[i]; } } + return TRUE; } /* video metadata */ @@ -287,7 +288,7 @@ gst_video_meta_unmap (GstVideoMeta * meta, guint plane, GstMapInfo * info) return meta->unmap (meta, plane, info); } -static void +static gboolean gst_video_crop_meta_transform (GstBuffer * dest, GstMeta * meta, GstBuffer * buffer, GQuark type, gpointer data) { @@ -302,6 +303,7 @@ gst_video_crop_meta_transform (GstBuffer * dest, GstMeta * meta, dmeta->width = smeta->width; dmeta->height = smeta->height; } + return TRUE; } const GstMetaInfo * -- 2.7.4