mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-06-09 06:10:42 +00:00
Stream logging improvements
This commit is contained in:
parent
a81b14cb2a
commit
47757b6944
|
@ -500,7 +500,7 @@ stream_set_metadata(struct stream *s, mdata_t md, char **md_str)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = shout_set_metadata(s->shout, shout_md)) != SHOUTERR_SUCCESS)
|
if ((ret = shout_set_metadata(s->shout, shout_md)) != SHOUTERR_SUCCESS)
|
||||||
log_warning("shout_set_metadata: %s", shout_get_error(s->shout));
|
log_warning("shout_set_metadata: error %d", ret);
|
||||||
|
|
||||||
shout_metadata_free(shout_md);
|
shout_metadata_free(shout_md);
|
||||||
|
|
||||||
|
@ -568,9 +568,12 @@ stream_connect(struct stream *s)
|
||||||
void
|
void
|
||||||
stream_disconnect(struct stream *s)
|
stream_disconnect(struct stream *s)
|
||||||
{
|
{
|
||||||
if (!stream_get_connected(s))
|
if (!stream_get_connected(s)) {
|
||||||
|
log_debug("stream: %s: not connected", s->name);
|
||||||
return;
|
return;
|
||||||
shout_close(s->shout);
|
}
|
||||||
|
log_debug("stream: %s: disconnecting: %d", s->name,
|
||||||
|
shout_close(s->shout));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user