[vlc-commits] marq: use vlc_strerror_c()
Rémi Denis-Courmont
git at videolan.org
Sun Dec 29 15:16:30 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:43:29 2013 +0200| [e3788b17893794beeb215a8f00e0ddbf250914da] | committer: Rémi Denis-Courmont
marq: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3788b17893794beeb215a8f00e0ddbf250914da
---
modules/video_filter/marq.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c
index f590226..f8ea5df 100644
--- a/modules/video_filter/marq.c
+++ b/modules/video_filter/marq.c
@@ -31,13 +31,13 @@
# include "config.h"
#endif
+#include <errno.h>
+
#include <vlc_common.h>
#include <vlc_plugin.h>
-
#include <vlc_filter.h>
#include <vlc_block.h>
#include <vlc_fs.h>
-
#include <vlc_strings.h>
/*****************************************************************************
@@ -353,7 +353,7 @@ static char *MarqueeReadFile( filter_t *obj, const char *path )
FILE *stream = vlc_fopen( path, "rt" );
if( stream == NULL )
{
- msg_Err( obj, "cannot open %s: %m", path );
+ msg_Err( obj, "cannot open %s: %s", path, vlc_strerror_c(errno) );
return NULL;
}
@@ -362,7 +362,7 @@ static char *MarqueeReadFile( filter_t *obj, const char *path )
ssize_t len = getline( &line, &(size_t){ 0 }, stream );
if( len == -1 )
{
- msg_Err( obj, "cannot read %s: %m", path );
+ msg_Err( obj, "cannot read %s: %s", path, vlc_strerror_c(errno) );
clearerr( stream );
line = NULL;
}
More information about the vlc-commits
mailing list