Commit 9046e600 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle

AudioConverter: register as boxed type

https://bugzilla.gnome.org/show_bug.cgi?id=793492
parent 3d50d0e8
...@@ -670,6 +670,7 @@ gst_audio_converter_reset ...@@ -670,6 +670,7 @@ gst_audio_converter_reset
gst_audio_converter_supports_inplace gst_audio_converter_supports_inplace
<SUBSECTION Standard> <SUBSECTION Standard>
gst_audio_converter_flags_get_type gst_audio_converter_flags_get_type
gst_audio_converter_get_type
</SECTION> </SECTION>
<SECTION> <SECTION>
......
...@@ -141,6 +141,20 @@ struct _GstAudioConverter ...@@ -141,6 +141,20 @@ struct _GstAudioConverter
AudioConvertSamplesFunc convert; AudioConvertSamplesFunc convert;
}; };
static GstAudioConverter *
gst_audio_converter_copy (GstAudioConverter * convert)
{
GstAudioConverter *res =
gst_audio_converter_new (convert->flags, &convert->in, &convert->out,
convert->config);
return res;
}
G_DEFINE_BOXED_TYPE (GstAudioConverter, gst_audio_converter,
(GBoxedCopyFunc) gst_audio_converter_copy,
(GBoxedFreeFunc) gst_audio_converter_free);
typedef gboolean (*AudioChainFunc) (AudioChain * chain, gpointer user_data); typedef gboolean (*AudioChainFunc) (AudioChain * chain, gpointer user_data);
typedef gpointer *(*AudioChainAllocFunc) (AudioChain * chain, gsize num_samples, typedef gpointer *(*AudioChainAllocFunc) (AudioChain * chain, gsize num_samples,
gpointer user_data); gpointer user_data);
......
...@@ -121,6 +121,9 @@ GstAudioConverter * gst_audio_converter_new (GstAudioConverterFlags ...@@ -121,6 +121,9 @@ GstAudioConverter * gst_audio_converter_new (GstAudioConverterFlags
GstAudioInfo *out_info, GstAudioInfo *out_info,
GstStructure *config); GstStructure *config);
GST_EXPORT
GType gst_audio_converter_get_type (void);
GST_EXPORT GST_EXPORT
void gst_audio_converter_free (GstAudioConverter * convert); void gst_audio_converter_free (GstAudioConverter * convert);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment