Skip to content

Commit

Permalink
plugin: add support for system-wide config
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
  • Loading branch information
Felipe Contreras committed Mar 8, 2010
1 parent b9b77f2 commit 662a32e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion omx/gstomx.c
Expand Up @@ -117,13 +117,21 @@ get_config_path (void)
if (path)
return path;

dirs = g_get_system_config_dirs ();
for (i = 0; dirs[i]; i++)
{
path = g_build_filename (dirs[i], "gstreamer-0.10", "gst-openmax.conf", NULL);
if (g_file_test (path, G_FILE_TEST_IS_REGULAR))
return path;
g_free (path);
}

return g_build_filename (g_get_user_config_dir (),
"gst-openmax.conf", NULL);
}

/**
* @todo find a way to call plugin_init() when the config file changes
* @todo support a system-wide config file
* @todo provide a recommended system-wide config file
*/

Expand Down

0 comments on commit 662a32e

Please sign in to comment.