summaryrefslogtreecommitdiff
path: root/gstreamer-sharp/glue/indexfactory.c
diff options
context:
space:
mode:
Diffstat (limited to 'gstreamer-sharp/glue/indexfactory.c')
-rw-r--r--gstreamer-sharp/glue/indexfactory.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gstreamer-sharp/glue/indexfactory.c b/gstreamer-sharp/glue/indexfactory.c
new file mode 100644
index 0000000..8949989
--- /dev/null
+++ b/gstreamer-sharp/glue/indexfactory.c
@@ -0,0 +1,12 @@
+#include <gst/gst.h>
+
+void
+gstsharp_gst_index_factory_set_plugin (GstIndexFactory * factory,
+ GstPlugin * plugin)
+{
+ if (!plugin)
+ return;
+
+ GST_PLUGIN_FEATURE (factory)->plugin_name = g_strdup (plugin->desc.name);
+ GST_PLUGIN_FEATURE (factory)->loaded = TRUE;
+}