Commit 8f528e6d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

decomp: use vlc_strerror_c()

parent d0b09d6f
...@@ -155,7 +155,8 @@ static void *Thread (void *data) ...@@ -155,7 +155,8 @@ static void *Thread (void *data)
{ {
if (j == 0) if (j == 0)
errno = EPIPE; errno = EPIPE;
msg_Err (stream, "cannot write data (%m)"); msg_Err (stream, "cannot write data: %s",
vlc_strerror_c(errno));
error = true; error = true;
break; break;
} }
...@@ -355,7 +356,7 @@ static int Open (stream_t *stream, const char *path) ...@@ -355,7 +356,7 @@ static int Open (stream_t *stream, const char *path)
} }
else else
{ {
msg_Err (stream, "Cannot execute %s", path); msg_Err (stream, "cannot execute %s", path);
p_sys->pid = -1; p_sys->pid = -1;
} }
posix_spawn_file_actions_destroy (&actions); posix_spawn_file_actions_destroy (&actions);
...@@ -364,7 +365,7 @@ static int Open (stream_t *stream, const char *path) ...@@ -364,7 +365,7 @@ static int Open (stream_t *stream, const char *path)
switch (p_sys->pid = fork ()) switch (p_sys->pid = fork ())
{ {
case -1: case -1:
msg_Err (stream, "Cannot fork (%m)"); msg_Err (stream, "cannot fork: %s", vlc_strerror_c(errno));
break; break;
case 0: case 0:
dup2 (comp[0], 0); dup2 (comp[0], 0);
......
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