gboolean gst_mem_index_plugin_init (GstPlugin * plugin) { GstIndexFactory *factory; factory = gst_index_factory_new ("memindex", "A index that stores entries in memory", gst_mem_index_get_type ()); if (factory == NULL) { g_warning ("failed to create memindex factory"); return FALSE; } GST_PLUGIN_FEATURE (factory)->plugin_name = plugin->desc.name; GST_PLUGIN_FEATURE (factory)->loaded = TRUE; gst_registry_add_feature (gst_registry_get_default (), GST_PLUGIN_FEATURE (factory)); return TRUE; }
gboolean gst_file_index_plugin_init (GstPlugin * plugin) { GstIndexFactory *factory; factory = gst_index_factory_new ("fileindex", "A index that stores entries in file", gst_file_index_get_type ()); if (factory == NULL) { return FALSE; } GST_PLUGIN_FEATURE (factory)->plugin_name = plugin->desc.name; GST_PLUGIN_FEATURE (factory)->loaded = TRUE; gst_registry_add_feature (gst_registry_get_default (), GST_PLUGIN_FEATURE (factory)); GST_DEBUG_CATEGORY_INIT (DC, "GST_FILEINDEX", 0, NULL); return TRUE; }