summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_image.c3
-rw-r--r--video/out/vo_x11.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/video/out/vo_image.c b/video/out/vo_image.c
index a130048e54..ccb8fba830 100644
--- a/video/out/vo_image.c
+++ b/video/out/vo_image.c
@@ -29,6 +29,7 @@
#include "osdep/io.h"
#include "options/path.h"
#include "talloc.h"
+#include "common/common.h"
#include "common/msg.h"
#include "video/out/vo.h"
#include "video/csputils.h"
@@ -52,7 +53,7 @@ static bool checked_mkdir(struct vo *vo, const char *buf)
{
MP_INFO(vo, "Creating output directory '%s'...\n", buf);
if (mkdir(buf, 0755) < 0) {
- char *errstr = strerror(errno);
+ char *errstr = mp_strerror(errno);
if (errno == EEXIST) {
struct stat stat_p;
if (stat(buf, &stat_p ) == 0 && S_ISDIR(stat_p.st_mode))
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index 38a60c1be8..90e3eb52be 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -180,8 +180,6 @@ static void getMyXImage(struct priv *p, int foo)
IPC_CREAT | 0777);
if (p->Shminfo[foo].shmid < 0) {
XDestroyImage(p->myximage[foo]);
- MP_VERBOSE(vo, "%s\n", strerror(errno));
- //perror( strerror( errno ) );
MP_WARN(vo, "Shared memory error,disabling ( seg id error )\n");
goto shmemerror;
}