GstRegistry *registry; registry = gst_registry_get_default(); gst_registry_add_path(registry,directory);