recorder-src: Use normal GObject boilerplate

Gst will drop its own boilerplate in 1.0, so just use G_DEFINE_TYPE.

https://bugzilla.gnome.org/show_bug.cgi?id=679445
This commit is contained in:
Florian Müllner 2012-07-04 17:46:39 +02:00
parent 8845a2170c
commit f9dbe56785

View File

@ -34,11 +34,10 @@ enum {
/* Special marker value once the source is closed */
#define RECORDER_QUEUE_END ((GstBuffer *)1)
GST_BOILERPLATE(ShellRecorderSrc, shell_recorder_src, GstPushSrc, GST_TYPE_PUSH_SRC);
G_DEFINE_TYPE(ShellRecorderSrc, shell_recorder_src, GST_TYPE_PUSH_SRC);
static void
shell_recorder_src_init (ShellRecorderSrc *src,
ShellRecorderSrcClass *klass)
shell_recorder_src_init (ShellRecorderSrc *src)
{
gst_base_src_set_format (GST_BASE_SRC (src), GST_FORMAT_TIME);
@ -47,11 +46,6 @@ shell_recorder_src_init (ShellRecorderSrc *src,
g_mutex_init (src->mutex);
}
static void
shell_recorder_src_base_init (gpointer klass)
{
}
static gboolean
shell_recorder_src_memory_used_update_idle (gpointer data)
{
@ -146,7 +140,7 @@ shell_recorder_src_finalize (GObject *object)
g_mutex_clear (src->mutex);
G_OBJECT_CLASS (parent_class)->finalize (object);
G_OBJECT_CLASS (shell_recorder_src_parent_class)->finalize (object);
}
static void