Commit 2d79b42d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dynamic overlay: use vlc_strerror_c()

parent dcf15829
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment