Mercurial > audlegacy-plugins
diff src/streambrowser/streamdir.c @ 2822:e883536cefe0
implemented xiph categories/genres, xiph is now usable
| author | Calin Crisan ccrisan@gmail.com |
|---|---|
| date | Sun, 13 Jul 2008 20:18:00 +0300 |
| parents | cc6f02424609 |
| children | 113454baecf8 |
line wrap: on
line diff
--- a/src/streambrowser/streamdir.c Sun Jul 13 14:48:39 2008 +0300 +++ b/src/streambrowser/streamdir.c Sun Jul 13 20:18:00 2008 +0300 @@ -113,6 +113,17 @@ streaminfo_t* streaminfo_new(gchar *name, gchar *playlist_url, gchar *url, gchar *current_track) { + /* replace ampersands with slashes, to avoit gtk/pango markup confusions */ + int i, count = strlen(name); + for (i = 0; i < count; i++) + if (name[i] == '&') + name[i] = '/'; + + count = strlen(current_track); + for (i = 0; i < count; i++) + if (current_track[i] == '&') + current_track[i] = '/'; + streaminfo_t *streaminfo = (streaminfo_t*) g_malloc(sizeof(streaminfo_t)); strncpy(streaminfo->name, name, DEF_STRING_LEN); strncpy(streaminfo->playlist_url, playlist_url, DEF_STRING_LEN);
