diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-10-14 17:42:43 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-10-24 15:14:26 +0300 |
commit | 65a2e3c6056ef8acb2bfee7a139cd34ae2e283ab (patch) | |
tree | b1a2f7d1389c4fb95351f63819ca946c0897fa64 | |
parent | b890ecd83c7b4d41f02eb4171bc0fc399c64dab9 (diff) |
wildmidi: use G_DIR_SEPARATOR_S instead of hardcoded slashes
-rw-r--r-- | ext/timidity/gstwildmidi.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c index 8c84727ac..de3752942 100644 --- a/ext/timidity/gstwildmidi.c +++ b/ext/timidity/gstwildmidi.c @@ -156,7 +156,9 @@ wildmidi_open_config () } if (path == NULL) { - path = g_build_path (G_DIR_SEPARATOR_S, "/etc", "wildmidi.cfg", NULL); + path = + g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", + "wildmidi.cfg", NULL); GST_DEBUG ("trying %s", path); if (path && (g_access (path, R_OK) == -1)) { g_free (path); @@ -166,8 +168,8 @@ wildmidi_open_config () if (path == NULL) { path = - g_build_path (G_DIR_SEPARATOR_S, "/etc", "wildmidi", "wildmidi.cfg", - NULL); + g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", "wildmidi", + "wildmidi.cfg", NULL); GST_DEBUG ("trying %s", path); if (path && (g_access (path, R_OK) == -1)) { g_free (path); @@ -185,7 +187,9 @@ wildmidi_open_config () } if (path == NULL) { - path = g_build_path (G_DIR_SEPARATOR_S, "/etc", "timidity.cfg", NULL); + path = + g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", + "timidity.cfg", NULL); GST_DEBUG ("trying %s", path); if (path && (g_access (path, R_OK) == -1)) { g_free (path); @@ -195,8 +199,8 @@ wildmidi_open_config () if (path == NULL) { path = - g_build_path (G_DIR_SEPARATOR_S, "/etc", "timidity", "timidity.cfg", - NULL); + g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", "timidity", + "timidity.cfg", NULL); GST_DEBUG ("trying %s", path); if (path && (g_access (path, R_OK) == -1)) { g_free (path); |