[vlc-commits] decomp: 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:41:30 2013 +0200| [8f528e6df8ca139b100178f6a1e32082bf1df23c] | committer: Rémi Denis-Courmont
decomp: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f528e6df8ca139b100178f6a1e32082bf1df23c
---
modules/stream_filter/decomp.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index df821d5..fa1013d 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -155,7 +155,8 @@ static void *Thread (void *data)
{
if (j == 0)
errno = EPIPE;
- msg_Err (stream, "cannot write data (%m)");
+ msg_Err (stream, "cannot write data: %s",
+ vlc_strerror_c(errno));
error = true;
break;
}
@@ -355,7 +356,7 @@ static int Open (stream_t *stream, const char *path)
}
else
{
- msg_Err (stream, "Cannot execute %s", path);
+ msg_Err (stream, "cannot execute %s", path);
p_sys->pid = -1;
}
posix_spawn_file_actions_destroy (&actions);
@@ -364,7 +365,7 @@ static int Open (stream_t *stream, const char *path)
switch (p_sys->pid = fork ())
{
case -1:
- msg_Err (stream, "Cannot fork (%m)");
+ msg_Err (stream, "cannot fork: %s", vlc_strerror_c(errno));
break;
case 0:
dup2 (comp[0], 0);
More information about the vlc-commits
mailing list