playlist/flac: set song URI to an empty string

Simplify the plugin by using a trivial relative URI; later,
playlist_check_translate_song() will set the correct full URI.
This commit is contained in:
Max Kellermann 2019-08-16 14:55:12 +02:00
parent e98ce710b8
commit ca9daf5e19

View File

@ -70,8 +70,6 @@ flac_playlist_open_stream(InputStreamPtr &&is)
throw FormatRuntimeError("Failed to read FLAC metadata: %s",
chain.GetStatusString());
const char *const uri = is->GetURI();
FlacMetadataIterator iterator((FLAC__Metadata_Chain *)chain);
unsigned sample_rate = 0;
@ -89,7 +87,7 @@ flac_playlist_open_stream(InputStreamPtr &&is)
if (sample_rate == 0)
break;
return ToSongEnumerator(uri, block.data.cue_sheet,
return ToSongEnumerator("", block.data.cue_sheet,
sample_rate, total_samples);
default: