diff options
author | Max Kellermann <max@duempel.org> | 2010-12-23 16:16:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-12-23 16:23:20 +0100 |
commit | 5462f34ed037111d2d57638352b2f1a65a322579 (patch) | |
tree | d1acf3493d2d8edbbda9ae77a327d26ae249f3f9 /src/playlist/extm3u_playlist_plugin.c | |
parent | 0958ed584431ac09e676dd51925e56142416e7c2 (diff) | |
download | mpd-5462f34ed037111d2d57638352b2f1a65a322579.tar.gz mpd-5462f34ed037111d2d57638352b2f1a65a322579.tar.xz mpd-5462f34ed037111d2d57638352b2f1a65a322579.zip |
string_util: add function strchug_fast()
Replace g_strchug() calls with a cheaper implementation.
Diffstat (limited to 'src/playlist/extm3u_playlist_plugin.c')
-rw-r--r-- | src/playlist/extm3u_playlist_plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playlist/extm3u_playlist_plugin.c b/src/playlist/extm3u_playlist_plugin.c index 9a04aa066..91f6eed08 100644 --- a/src/playlist/extm3u_playlist_plugin.c +++ b/src/playlist/extm3u_playlist_plugin.c @@ -24,6 +24,7 @@ #include "uri.h" #include "song.h" #include "tag.h" +#include "string_util.h" #include <glib.h> @@ -89,7 +90,7 @@ extm3u_parse_tag(const char *line) /* 0 means unknown duration */ duration = 0; - name = g_strchug(endptr + 1); + name = strchug_fast_c(endptr + 1); if (*name == 0 && duration == 0) /* no information available; don't allocate a tag object */ |