[vlc-commits] dynamic overlay: use vlc_strerror_c()

Rémi Denis-Courmont git at videolan.org
Sun Dec 29 15:16:31 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:54:54 2013 +0200| [2d79b42d893e7a8828c64fd89f74a7fd521483f8] | committer: Rémi Denis-Courmont

dynamic overlay: use vlc_strerror_c()

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

 modules/video_filter/dynamicoverlay/dynamicoverlay.c |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay.c b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
index 789c272..ab8129a 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
@@ -175,8 +175,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
         p_sys->i_inputfd = vlc_open( p_sys->psz_inputfile, O_RDONLY | O_NONBLOCK );
         if( p_sys->i_inputfd == -1 )
         {
-            msg_Warn( p_filter, "Failed to grab input file: %s (%m)",
-                      p_sys->psz_inputfile );
+            msg_Warn( p_filter, "Failed to grab input file: %s (%s)",
+                      p_sys->psz_inputfile, vlc_strerror_c(errno) );
         }
         else
         {
@@ -193,8 +193,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
         {
             if( errno != ENXIO )
             {
-                msg_Warn( p_filter, "Failed to grab output file: %s (%m)",
-                          p_sys->psz_outputfile );
+                msg_Warn( p_filter, "Failed to grab output file: %s (%s)",
+                          p_sys->psz_outputfile, vlc_strerror_c(errno) );
             }
         }
         else
@@ -215,7 +215,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
             /* We hit an error */
             if( errno != EAGAIN )
             {
-                msg_Warn( p_filter, "Error on input file: %m" );
+                msg_Warn( p_filter, "Error on input file: %s",
+                          vlc_strerror_c(errno) );
                 close( p_sys->i_inputfd );
                 p_sys->i_inputfd = -1;
             }
@@ -321,7 +322,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
             /* We hit an error */
             if( errno != EAGAIN )
             {
-                msg_Warn( p_filter, "Error on output file: %m" );
+                msg_Warn( p_filter, "Error on output file: %s",
+                          vlc_strerror_c(errno) );
                 close( p_sys->i_outputfd );
                 p_sys->i_outputfd = -1;
             }



More information about the vlc-commits mailing list