]> git.sesse.net Git - vlc/commitdiff
vout_window: make zero an error value for window type
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Jul 2012 14:42:50 +0000 (17:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 5 Jul 2012 15:13:33 +0000 (18:13 +0300)
include/vlc_vout_window.h

index ea5e82188fd5f5153ba7860d9e70e932c307c861..ad57a7779505ae1d62fe824172a6e719d5853987 100644 (file)
@@ -41,6 +41,7 @@ typedef struct vout_window_sys_t vout_window_sys_t;
  * Window handle type
  */
 enum {
+    VOUT_WINDOW_TYPE_INVALID=0,
     VOUT_WINDOW_TYPE_XID,
     VOUT_WINDOW_TYPE_HWND,
     VOUT_WINDOW_TYPE_NSOBJECT,
@@ -66,7 +67,7 @@ typedef struct {
     bool is_standalone;
 
     /* Window handle type */
-    int type;
+    unsigned type;
 
     /* Window position hint */
     int x;