1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix mp3 streaming for clients not using metadata

svn path=/trunk/icecast/; revision=4348
This commit is contained in:
Michael Smith 2003-02-14 13:39:02 +00:00
parent 5b2a7bc07a
commit 008c8abbc7

View File

@ -144,7 +144,8 @@ static int format_mp3_write_buf_to_client(format_plugin_t *self,
{
int ret;
if(((mp3_state *)self->_state)->metadata)
if(((mp3_state *)self->_state)->metadata &&
((mp3_client_data *)(client->format_data))->use_metadata)
{
mp3_client_data *state = client->format_data;
int max = state->interval - state->offset;