summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r--libvo/vo_gl2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index 7b49ffb09e..f1afcb03c3 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
+#include <errno.h>
#include "config.h"
#include "video_out.h"
@@ -1102,7 +1103,12 @@ uninit(void)
static uint32_t preinit(const char *arg)
{
- return 0;
+ if(arg)
+ {
+ printf("[gl2] Unknown subdevice: %s\n",arg);
+ return ENOSYS;
+ }
+ return 0;
}
static uint32_t control(uint32_t request, void *data, ...)