diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-09-02 20:17:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-02 20:17:01 +0200 |
commit | c27ad7968d7ec30a50e7ff282fd36b9e06e2b08c (patch) | |
tree | ac0dc7c5912113c3e5cf5ba1e7788c6195d800a7 /src | |
parent | 8643ae2355138dfb937a08b2dc0c4903fdac10c1 (diff) |
check for .oga in addition to .ogg, to follow most recent s-t-s changes
Diffstat (limited to 'src')
-rw-r--r-- | src/sound-theme-spec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound-theme-spec.c b/src/sound-theme-spec.c index 1473ec0..46bd5c4 100644 --- a/src/sound-theme-spec.c +++ b/src/sound-theme-spec.c @@ -491,8 +491,9 @@ static int find_sound_in_locale( sprintf(p, "%s/sounds", path); if ((ret = find_sound_for_suffix(f, sfopen, sound_path, theme_name, name, p, ".disabled", locale, subdir)) == CA_ERROR_NOTFOUND) - if ((ret = find_sound_for_suffix(f, sfopen, sound_path,theme_name, name, p, ".ogg", locale, subdir)) == CA_ERROR_NOTFOUND) - ret = find_sound_for_suffix(f, sfopen, sound_path,theme_name, name, p, ".wav", locale, subdir); + if ((ret = find_sound_for_suffix(f, sfopen, sound_path,theme_name, name, p, ".oga", locale, subdir)) == CA_ERROR_NOTFOUND) + if ((ret = find_sound_for_suffix(f, sfopen, sound_path,theme_name, name, p, ".ogg", locale, subdir)) == CA_ERROR_NOTFOUND) + ret = find_sound_for_suffix(f, sfopen, sound_path,theme_name, name, p, ".wav", locale, subdir); ca_free(p); |