diff libvo/vo_gl.c @ 4737:32e1f5042f65

I don't like such reports: '-vo dga:vidix or -vo x11:vidix works fine for me'
author nick
date Sun, 17 Feb 2002 08:24:43 +0000
parents 93d562ad1c22
children b8d8d72776f2
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sun Feb 17 03:06:38 2002 +0000
+++ b/libvo/vo_gl.c	Sun Feb 17 08:24:43 2002 +0000
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
+#include <errno.h>
 
 #include "config.h"
 #include "video_out.h"
@@ -475,7 +476,12 @@
 
 static uint32_t preinit(const char *arg)
 {
-  return 0;
+    if(arg) 
+    {
+	printf("[gl] Unknown subdevice: %s\n",arg);
+	return ENOSYS;
+    }
+    return 0;
 }
 
 static uint32_t control(uint32_t request, void *data, ...)