decoder/oggflac: moved stream_info check to oggflac_decode()
This commit is contained in:
@@ -232,12 +232,6 @@ full_decoder_init_and_read_metadata(struct flac_data *data,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data->have_stream_info) {
|
|
||||||
OggFLAC__seekable_stream_decoder_delete(decoder);
|
|
||||||
g_warning("no STREAMINFO packet found");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return decoder;
|
return decoder;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
@@ -308,6 +302,11 @@ oggflac_decode(struct decoder * mpd_decoder, struct input_stream *input_stream)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!data.have_stream_info) {
|
||||||
|
g_warning("no STREAMINFO packet found");
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
if (!audio_format_valid(&data.audio_format)) {
|
if (!audio_format_valid(&data.audio_format)) {
|
||||||
g_warning("Invalid audio format: %u:%u:%u\n",
|
g_warning("Invalid audio format: %u:%u:%u\n",
|
||||||
data.audio_format.sample_rate,
|
data.audio_format.sample_rate,
|
||||||
|
Reference in New Issue
Block a user