diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-22 06:31:44 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-02-22 06:31:44 +0000 |
commit | 9ab72bf599f25e4b26034611faf5b8c78b072170 (patch) | |
tree | b9c372c2dc0f6a8e3b1a821f5628fb1380683967 /ext/timidity | |
parent | b750dbd5efb93ec58f4d85aee0709069fe4385f6 (diff) | |
download | gst-plugins-bad-9ab72bf599f25e4b26034611faf5b8c78b072170.tar.gz gst-plugins-bad-9ab72bf599f25e4b26034611faf5b8c78b072170.tar.bz2 gst-plugins-bad-9ab72bf599f25e4b26034611faf5b8c78b072170.zip |
ext/timidity/gstwildmidi.c: If WILDMIDI_CFG is not defined, define it to the default timidity configure file.
Original commit message from CVS:
* ext/timidity/gstwildmidi.c:
If WILDMIDI_CFG is not defined, define it to the default
timidity configure file.
Diffstat (limited to 'ext/timidity')
-rw-r--r-- | ext/timidity/gstwildmidi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c index e975a18a..80259a90 100644 --- a/ext/timidity/gstwildmidi.c +++ b/ext/timidity/gstwildmidi.c @@ -58,6 +58,10 @@ #include "gstwildmidi.h" +#ifndef WILDMIDI_CFG +#define WILDMIDI_CFG "/etc/timidity.cfg" +#endif + GST_DEBUG_CATEGORY_STATIC (gst_wildmidi_debug); #define GST_CAT_DEFAULT gst_wildmidi_debug @@ -159,7 +163,7 @@ wildmidi_open_config () } if (path == NULL) { - path = g_strdup (TIMIDITY_CFG); + path = g_strdup (WILDMIDI_CFG); GST_DEBUG ("trying %s", path); if (path && (g_access (path, R_OK) == -1)) { g_free (path); @@ -179,7 +183,7 @@ wildmidi_open_config () if (path == NULL) { /* I've created a symlink to get it playing * ln -s /usr/share/timidity/timidity.cfg /etc/wildmidi.cfg - * we could make it use : TIMIDITY_CFG + * we could make it use : WILDMIDI_CFG * but unfortunately it fails to create a proper filename if the config * has a redirect * http://sourceforge.net/tracker/index.php?func=detail&aid=1657358&group_id=42635&atid=433744 |