meta: add return value to transform
This commit is contained in:
parent
af308ac04d
commit
a232714065
@ -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,
|
gst_audio_downmix_meta_transform (GstBuffer * dest, GstMeta * meta,
|
||||||
GstBuffer * buffer, GQuark type, gpointer data)
|
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,
|
gst_buffer_add_audio_downmix_meta (dest, smeta->from_position,
|
||||||
smeta->from_channels, smeta->to_position, smeta->to_channels,
|
smeta->from_channels, smeta->to_position, smeta->to_channels,
|
||||||
(const gfloat **) smeta->matrix);
|
(const gfloat **) smeta->matrix);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "gstvideometa.h"
|
#include "gstvideometa.h"
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
gst_video_meta_transform (GstBuffer * dest, GstMeta * meta,
|
gst_video_meta_transform (GstBuffer * dest, GstMeta * meta,
|
||||||
GstBuffer * buffer, GQuark type, gpointer data)
|
GstBuffer * buffer, GQuark type, gpointer data)
|
||||||
{
|
{
|
||||||
@ -45,6 +45,7 @@ gst_video_meta_transform (GstBuffer * dest, GstMeta * meta,
|
|||||||
dmeta->stride[i] = smeta->stride[i];
|
dmeta->stride[i] = smeta->stride[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* video metadata */
|
/* video metadata */
|
||||||
@ -287,7 +288,7 @@ gst_video_meta_unmap (GstVideoMeta * meta, guint plane, GstMapInfo * info)
|
|||||||
return meta->unmap (meta, plane, info);
|
return meta->unmap (meta, plane, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
gst_video_crop_meta_transform (GstBuffer * dest, GstMeta * meta,
|
gst_video_crop_meta_transform (GstBuffer * dest, GstMeta * meta,
|
||||||
GstBuffer * buffer, GQuark type, gpointer data)
|
GstBuffer * buffer, GQuark type, gpointer data)
|
||||||
{
|
{
|
||||||
@ -302,6 +303,7 @@ gst_video_crop_meta_transform (GstBuffer * dest, GstMeta * meta,
|
|||||||
dmeta->width = smeta->width;
|
dmeta->width = smeta->width;
|
||||||
dmeta->height = smeta->height;
|
dmeta->height = smeta->height;
|
||||||
}
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
const GstMetaInfo *
|
const GstMetaInfo *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user