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

Filip Roséen git at videolan.org
Thu May 18 18:09:31 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:19:41 2017 +0200| [1739ed0fc8c6caeb9a816e7e7b1396ebf7eb2238] | committer: Rémi Denis-Courmont

input/input: InputStreamHandleAnchor: include missing information in diagnostics

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.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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,



More information about the vlc-commits mailing list