flvdemux: add prefix to local GstIndex related copies
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 12 Jan 2012 10:08:38 +0000 (11:08 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 12 Jan 2012 10:09:07 +0000 (11:09 +0100)
... to avoid duplicate type names with other such local copies in the wild.

gst/flv/gstindex.c
gst/flv/gstmemindex.c

index c8a0b1d..792d4b6 100644 (file)
@@ -126,7 +126,7 @@ gst_index_resolver_get_type (void)
 
   if (!index_resolver_type) {
     index_resolver_type =
-        g_enum_register_static ("GstIndexResolver", index_resolver);
+        g_enum_register_static ("GstFlvDemuxIndexResolver", index_resolver);
   }
   return index_resolver_type;
 }
@@ -137,7 +137,7 @@ gst_index_entry_get_type (void)
   static GType index_entry_type = 0;
 
   if (!index_entry_type) {
-    index_entry_type = g_boxed_type_register_static ("GstIndexEntry",
+    index_entry_type = g_boxed_type_register_static ("GstFlvDemuxIndexEntry",
         (GBoxedCopyFunc) gst_index_entry_copy,
         (GBoxedFreeFunc) gst_index_entry_free);
   }
@@ -152,7 +152,10 @@ gst_index_entry_get_type (void)
 }
 #endif
 
-G_DEFINE_TYPE (GstIndex, gst_index, GST_TYPE_OBJECT);
+typedef GstIndex GstFlvDemuxIndex;
+typedef GstIndexClass GstFlvDemuxIndexClass;
+//typedef GstIndexEntry GstFlvDemuxIndexEntry;
+G_DEFINE_TYPE (GstFlvDemuxIndex, gst_index, GST_TYPE_OBJECT);
 
 static void
 gst_index_class_init (GstIndexClass * klass)
index aaeab12..dfcd35c 100644 (file)
@@ -104,7 +104,9 @@ static GstIndexEntry *gst_mem_index_get_assoc_entry (GstIndex * index, gint id,
 
 static GType gst_mem_index_get_type (void);
 
-G_DEFINE_TYPE (GstMemIndex, gst_mem_index, GST_TYPE_INDEX);
+typedef GstMemIndex GstFlvDemuxMemIndex;
+typedef GstMemIndexClass GstFlvDemuxMemIndexClass;
+G_DEFINE_TYPE (GstFlvDemuxMemIndex, gst_mem_index, GST_TYPE_INDEX);
 
 static void
 gst_mem_index_class_init (GstMemIndexClass * klass)