[vlc-commits] stream_filter/httplive.c: beautify message

Jean-Paul Saman git at videolan.org
Wed Mar 2 23:51:13 CET 2011


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Feb 25 17:01:10 2011 +0100| [3ffd6e0f83e1f4f88c297af541d42a64d351d873] | committer: Jean-Paul Saman

stream_filter/httplive.c: beautify message

Make the error message easier to read by splitting it up.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ffd6e0f83e1f4f88c297af541d42a64d351d873
---

 modules/stream_filter/httplive.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 10370f3..9040eae 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -949,11 +949,11 @@ static int hls_UpdatePlaylist(stream_t *s, hls_stream_t *hls_new, hls_stream_t *
                 (p->duration != segment->duration) ||
                 (strcmp(p->url.psz_path, segment->url.psz_path) != 0))
             {
-                msg_Err(s, "existing segment %d found with different content",
-                        p->sequence);
+                msg_Err(s, "existing segment found with different content");
                 msg_Err(s, "- sequence: new=%d, old=%d", p->sequence, segment->sequence);
                 msg_Err(s, "- duration: new=%d, old=%d", p->duration, segment->duration);
-                msg_Err(s, "- file: new=%s, old=%s", p->url.psz_path, segment->url.psz_path);
+                msg_Err(s, "- file: new=%s", p->url.psz_path);
+                msg_Err(s, "        old=%s", segment->url.psz_path);
             }
         }
         else



More information about the vlc-commits mailing list