decoder_api: prefer stream_tag over decoder_tag

If both tags (stream and decoder) are present, we prefer the stream tag.
Fixes #2698, where ICY tag contained useful information, but was
overwritten with bogus decoder tag data.
This commit is contained in:
Thomas Jansen 2009-12-07 14:52:48 +01:00
parent b6b377edd1
commit 179502fe93

View File

@ -271,8 +271,8 @@ decoder_data(struct decoder *decoder,
/* merge with tag from decoder plugin */
struct tag *tag;
tag = tag_merge(decoder->stream_tag,
decoder->decoder_tag);
tag = tag_merge(decoder->decoder_tag,
decoder->stream_tag);
cmd = do_send_tag(decoder, is, tag);
tag_free(tag);
} else