diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-08-06 19:34:42 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-08-06 19:34:42 +0200 |
commit | 98da78ed2a4d340d64724dbf671e42d5bc893ec7 (patch) | |
tree | 970523eb1fd026d23358c870ea21ec8f31cdb000 /plugins | |
parent | cfefcc7183144c9e03f6051e5ba303c73aa33873 (diff) |
plugins: Add declarations for _get_type() functions to fix compiler warnings
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/elements/gstfilesrc.c | 2 | ||||
-rw-r--r-- | plugins/indexers/gstfileindex.c | 2 | ||||
-rw-r--r-- | plugins/indexers/gstmemindex.c | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index 3290cfa1b6..81c2df87aa 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -488,6 +488,8 @@ struct _GstMmapBufferClass static void gst_mmap_buffer_finalize (GstMmapBuffer * mmap_buffer); +GType gst_mmap_buffer_get_type (void); + G_DEFINE_TYPE (GstMmapBuffer, gst_mmap_buffer, GST_TYPE_BUFFER); static void diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c index 3601be8dc5..d30e2659ef 100644 --- a/plugins/indexers/gstfileindex.c +++ b/plugins/indexers/gstfileindex.c @@ -146,6 +146,8 @@ static GstIndexEntry *gst_file_index_get_assoc_entry (GstIndex * index, gint id, #define CLASS(file_index) GST_FILE_INDEX_CLASS (G_OBJECT_GET_CLASS (file_index)) +GType gst_file_index_get_type (void); + G_DEFINE_TYPE (GstFileIndex, gst_file_index, GST_TYPE_INDEX); static void diff --git a/plugins/indexers/gstmemindex.c b/plugins/indexers/gstmemindex.c index e77f4ea10f..76ef8fd3d2 100644 --- a/plugins/indexers/gstmemindex.c +++ b/plugins/indexers/gstmemindex.c @@ -116,10 +116,10 @@ static GstIndexEntry *gst_mem_index_get_assoc_entry (GstIndex * index, gint id, #define CLASS(mem_index) GST_MEM_INDEX_CLASS (G_OBJECT_GET_CLASS (mem_index)) -static GstIndex *parent_class = NULL; - /*static guint gst_mem_index_signals[LAST_SIGNAL] = { 0 }; */ +GType gst_mem_index_get_type (void); + G_DEFINE_TYPE (GstMemIndex, gst_mem_index, GST_TYPE_INDEX); static void @@ -131,8 +131,6 @@ gst_mem_index_class_init (GstMemIndexClass * klass) gobject_class = (GObjectClass *) klass; gstindex_class = (GstIndexClass *) klass; - parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = gst_mem_index_finalize; gstindex_class->add_entry = GST_DEBUG_FUNCPTR (gst_mem_index_add_entry); @@ -195,7 +193,7 @@ gst_mem_index_finalize (GObject * object) memindex->associations = NULL; } - G_OBJECT_CLASS (parent_class)->finalize (object); + G_OBJECT_CLASS (gst_mem_index_parent_class)->finalize (object); } static void |