[vlc-commits] playlist: log error message on export I/O error
    Rémi Denis-Courmont 
    git at videolan.org
       
    Thu Apr  3 19:19:57 CEST 2014
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr  3 20:19:35 2014 +0300| [8260ca6f2e439ef55114114212925f1422abf3f1] | committer: Rémi Denis-Courmont
playlist: log error message on export I/O error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8260ca6f2e439ef55114114212925f1422abf3f1
---
 src/playlist/loadsave.c |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/src/playlist/loadsave.c b/src/playlist/loadsave.c
index 9471092..605059f 100644
--- a/src/playlist/loadsave.c
+++ b/src/playlist/loadsave.c
@@ -76,6 +76,9 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename,
         module_unneed( p_export, p_module );
         if( !ferror( p_export->p_file ) )
             ret = VLC_SUCCESS;
+        else
+            msg_Err( p_playlist, "could not write playlist file: %s",
+                     vlc_strerror_c(errno) );
     }
     else
         msg_Err( p_playlist, "could not export playlist" );
    
    
More information about the vlc-commits
mailing list