[vlc-commits] playlist/directory.c: Add a warning message in case of failure.

Julien 'Lta' BALLET git at videolan.org
Fri Jul 4 18:39:06 CEST 2014


vlc | branch: master | Julien 'Lta' BALLET <contact at lta.io> | Wed Jul  2 15:09:24 2014 +0200| [6e9b9942a013ddfbe92d9484895d290f7138f68a] | committer: Jean-Baptiste Kempf

playlist/directory.c: Add a warning message in case of failure.

And fix a typo

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/playlist/directory.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/demux/playlist/directory.c b/modules/demux/playlist/directory.c
index d031682..a73a138 100644
--- a/modules/demux/playlist/directory.c
+++ b/modules/demux/playlist/directory.c
@@ -51,7 +51,7 @@ int Import_Dir ( vlc_object_t *p_this)
 
     p_demux->pf_control = Control;
     p_demux->pf_demux = Demux;
-    msg_Dbg( p_demux, "%s", "reading directory content" );
+    msg_Dbg( p_demux, "reading directory content" );
 
     return VLC_SUCCESS;
 }
@@ -72,6 +72,8 @@ static int Demux( demux_t *p_demux )
         input_item_node_Delete( p_node );
         return VLC_EGENERIC;
     }
+    else
+        msg_Warn( p_demux, "unable to read directory" );
 
     input_item_node_PostAndDelete( p_node );
     return VLC_SUCCESS;



More information about the vlc-commits mailing list