Mercurial > audlegacy
diff audacious/playlist_container.c @ 1552:aaca4aab4670 trunk
[svn] - further integration
author | nenolod |
---|---|
date | Thu, 10 Aug 2006 18:40:52 -0700 |
parents | a4180850edfe |
children | 7ea3c9610ca0 |
line wrap: on
line diff
--- a/audacious/playlist_container.c Thu Aug 10 18:39:05 2006 -0700 +++ b/audacious/playlist_container.c Thu Aug 10 18:40:52 2006 -0700 @@ -78,3 +78,13 @@ plc->plc_write(filename, pos); } +gboolean is_playlist_name(char *filename) +{ + char *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ + PlaylistContainer *plc = playlist_container_find(ext); + + if (plc != NULL) + return TRUE; + + return FALSE; +}