[vlc-devel] [PATCH] input/input: InputStreamHandleAnchor: include missing information in diagnostics

Filip Roséen filip at atch.se
Thu May 18 12:19:41 CEST 2017


The previous diagnostics were not at all helpful as they did not
include for what things happened. This fixes the issue by including
the path of the relevant stream.
---
 src/input/input.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 596317391a..17b87823e4 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2265,12 +2265,15 @@ InputStreamHandleAnchor( input_source_t *source, stream_t **stream,
     char const* extra;
     if( stream_extractor_AttachParsed( stream, anchor, &extra ) )
     {
-        msg_Err( source, "unable to attach stream-extractors for" );
+        msg_Err( source, "unable to attach stream-extractors for %s",
+            (*stream)->psz_url );
+
         return VLC_EGENERIC;
     }
 
     if( vlc_stream_directory_Attach( stream, NULL ) )
-        msg_Dbg( source, "attach of directory extractor failed" );
+        msg_Dbg( source, "attachment of directory-extractor failed for %s",
+            (*stream)->psz_url );
 
     MRLSections( extra ? extra : "",
         &source->i_title_start, &source->i_title_end,
-- 
2.12.2


More information about the vlc-devel mailing list