[vlc-commits] commit: stream_filter/httplive.c: adapt debug logging (Jean-Paul Saman )
git at videolan.org
git at videolan.org
Fri Nov 26 16:55:15 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Nov 26 16:51:04 2010 +0100| [4cb95a425d3b2c7a8b75510fcc1b322a5a8ffc97] | committer: Jean-Paul Saman
stream_filter/httplive.c: adapt debug logging
Move logging of current segment and stream. The previous place gave
confusing information.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cb95a425d3b2c7a8b75510fcc1b322a5a8ffc97
---
modules/stream_filter/httplive.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index ae4ece2..e5829bc 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1309,12 +1309,14 @@ static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
segment->data = NULL;
}
p_sys->segment++;
- msg_Info(s, "playing segment %d from stream %d",
- p_sys->segment, p_sys->current);
vlc_mutex_unlock(&segment->lock);
continue;
}
+ if (segment->size == segment->data->i_buffer)
+ msg_Info(s, "playing segment %d from stream %d",
+ p_sys->segment, p_sys->current);
+
ssize_t len = -1;
if (i_read <= segment->data->i_buffer)
len = i_read;
More information about the vlc-commits
mailing list