Mercurial > audlegacy
comparison src/audacious/playlist.c @ 3401:ae30eb582a66
Only set playlist name to filename if it didn't already have a name
author | Kieran Clancy <clancy.kieran+audacious@gmail.com> |
---|---|
date | Mon, 27 Aug 2007 01:45:47 +0930 |
parents | e2e875f3d02b |
children | 0fcff78c0c2c 3b26640f9fd6 602ec8c40d0d |
comparison
equal
deleted
inserted
replaced
3400:8764498b75ed | 3401:ae30eb582a66 |
---|---|
1572 g_return_val_if_fail(playlist != NULL, FALSE); | 1572 g_return_val_if_fail(playlist != NULL, FALSE); |
1573 g_return_val_if_fail(filename != NULL, FALSE); | 1573 g_return_val_if_fail(filename != NULL, FALSE); |
1574 | 1574 |
1575 ext = strrchr(filename, '.') + 1; | 1575 ext = strrchr(filename, '.') + 1; |
1576 | 1576 |
1577 playlist_set_current_name(playlist, filename); | 1577 if (!playlist->title || !playlist->title[0]) |
1578 playlist_set_current_name(playlist, filename); | |
1578 | 1579 |
1579 if ((plc = playlist_container_find(ext)) == NULL) | 1580 if ((plc = playlist_container_find(ext)) == NULL) |
1580 return FALSE; | 1581 return FALSE; |
1581 | 1582 |
1582 if (plc->plc_write == NULL) | 1583 if (plc->plc_write == NULL) |