mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
meta: add return value to transform
This commit is contained in:
parent
af308ac04d
commit
a232714065
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue