db/simple/Song: rename "uri" to "filename"
This attribute is not a URI; it is just the filename without its parent directory path. To avoid confusion, let's rename it to "filename", leaving the struct without a "uri" attribute.
This commit is contained in:
@@ -51,7 +51,7 @@ range_save(BufferedOutputStream &os, unsigned start_ms, unsigned end_ms)
|
||||
void
|
||||
song_save(BufferedOutputStream &os, const Song &song)
|
||||
{
|
||||
os.Format(SONG_BEGIN "%s\n", song.uri.c_str());
|
||||
os.Format(SONG_BEGIN "%s\n", song.filename.c_str());
|
||||
|
||||
range_save(os, song.start_time.ToMS(), song.end_time.ToMS());
|
||||
|
||||
|
Reference in New Issue
Block a user