[vlc-commits] vout_window: make zero an error value for window type

Rémi Denis-Courmont git at videolan.org
Thu Jul 5 17:35:18 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  5 17:42:50 2012 +0300| [6721871c96e99af34a58790af0477e749c2e05db] | committer: Rémi Denis-Courmont

vout_window: make zero an error value for window type

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6721871c96e99af34a58790af0477e749c2e05db
---

 include/vlc_vout_window.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index ea5e821..ad57a77 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -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;



More information about the vlc-commits mailing list