audioconvert: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
1b683d5a76
commit
2b67ce5b5a
@ -110,7 +110,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "gstaudioconvert.h"
|
#include "gstaudioconvert.h"
|
||||||
#include "plugin.h"
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (audio_convert_debug);
|
GST_DEBUG_CATEGORY (audio_convert_debug);
|
||||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE);
|
GST_DEBUG_CATEGORY_STATIC (GST_CAT_PERFORMANCE);
|
||||||
|
@ -26,14 +26,9 @@
|
|||||||
#include <gst/base/gstbasetransform.h>
|
#include <gst/base/gstbasetransform.h>
|
||||||
#include <gst/audio/audio.h>
|
#include <gst/audio/audio.h>
|
||||||
|
|
||||||
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
|
||||||
#define GST_AUDIO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_CONVERT,GstAudioConvert))
|
G_DECLARE_FINAL_TYPE (GstAudioConvert, gst_audio_convert,
|
||||||
#define GST_AUDIO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_CONVERT,GstAudioConvertClass))
|
GST, AUDIO_CONVERT, GstBaseTransform)
|
||||||
#define GST_IS_AUDIO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_CONVERT))
|
|
||||||
#define GST_IS_AUDIO_CONVERT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_CONVERT))
|
|
||||||
|
|
||||||
typedef struct _GstAudioConvert GstAudioConvert;
|
|
||||||
typedef struct _GstAudioConvertClass GstAudioConvertClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstAudioConvert:
|
* GstAudioConvert:
|
||||||
@ -55,9 +50,4 @@ struct _GstAudioConvert
|
|||||||
GstAudioConverter *convert;
|
GstAudioConverter *convert;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAudioConvertClass
|
|
||||||
{
|
|
||||||
GstBaseTransformClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* __GST_AUDIO_CONVERT_H__ */
|
#endif /* __GST_AUDIO_CONVERT_H__ */
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "gstaudioconvert.h"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "audioconvert",
|
if (!gst_element_register (plugin, "audioconvert",
|
||||||
GST_RANK_PRIMARY, gst_audio_convert_get_type ()))
|
GST_RANK_PRIMARY, GST_TYPE_AUDIO_CONVERT))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
/* GStreamer buffer-frames conversion plugin
|
|
||||||
* Copyright (C) 2004 Andy Wingo <wingo at pobox.com>
|
|
||||||
*
|
|
||||||
* plugin.h: the stubs for the buffer-frames-convert plugin
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or
|
|
||||||
* modify it under the terms of the GNU Library General Public
|
|
||||||
* License as published by the Free Software Foundation; either
|
|
||||||
* version 2 of the License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This library is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Library General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Library General Public
|
|
||||||
* License along with this library; if not, write to the
|
|
||||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
||||||
* Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __GST_PLUGIN_AUDIO_CONVERT_H__
|
|
||||||
#define __GST_PLUGIN_AUDIO_CONVERT_H__
|
|
||||||
|
|
||||||
|
|
||||||
#include <gst/gst.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
GType gst_audio_convert_get_type (void);
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif /* __GST_PLUGIN_AUDIO_CONVERT_H__ */
|
|
Loading…
x
Reference in New Issue
Block a user