mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
wildmidi: use G_DIR_SEPARATOR_S instead of hardcoded slashes
This commit is contained in:
parent
b890ecd83c
commit
65a2e3c605
1 changed files with 10 additions and 6 deletions
|
@ -156,7 +156,9 @@ wildmidi_open_config ()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path == NULL) {
|
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);
|
GST_DEBUG ("trying %s", path);
|
||||||
if (path && (g_access (path, R_OK) == -1)) {
|
if (path && (g_access (path, R_OK) == -1)) {
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
@ -166,8 +168,8 @@ wildmidi_open_config ()
|
||||||
|
|
||||||
if (path == NULL) {
|
if (path == NULL) {
|
||||||
path =
|
path =
|
||||||
g_build_path (G_DIR_SEPARATOR_S, "/etc", "wildmidi", "wildmidi.cfg",
|
g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", "wildmidi",
|
||||||
NULL);
|
"wildmidi.cfg", NULL);
|
||||||
GST_DEBUG ("trying %s", path);
|
GST_DEBUG ("trying %s", path);
|
||||||
if (path && (g_access (path, R_OK) == -1)) {
|
if (path && (g_access (path, R_OK) == -1)) {
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
@ -185,7 +187,9 @@ wildmidi_open_config ()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path == NULL) {
|
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);
|
GST_DEBUG ("trying %s", path);
|
||||||
if (path && (g_access (path, R_OK) == -1)) {
|
if (path && (g_access (path, R_OK) == -1)) {
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
@ -195,8 +199,8 @@ wildmidi_open_config ()
|
||||||
|
|
||||||
if (path == NULL) {
|
if (path == NULL) {
|
||||||
path =
|
path =
|
||||||
g_build_path (G_DIR_SEPARATOR_S, "/etc", "timidity", "timidity.cfg",
|
g_build_path (G_DIR_SEPARATOR_S, G_DIR_SEPARATOR_S "etc", "timidity",
|
||||||
NULL);
|
"timidity.cfg", NULL);
|
||||||
GST_DEBUG ("trying %s", path);
|
GST_DEBUG ("trying %s", path);
|
||||||
if (path && (g_access (path, R_OK) == -1)) {
|
if (path && (g_access (path, R_OK) == -1)) {
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
|
Loading…
Reference in a new issue