]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
Add missing video capture ifdefs
[xonotic/darkplaces.git] / client.h
index cec5b8e05e7495e0f705b163ff038a4bb924396e..ff96e4fe672d8f3308e7a17ad05af53c00c5137b 100644 (file)
--- a/client.h
+++ b/client.h
@@ -737,6 +737,7 @@ typedef enum qw_downloadtype_e
 }
 qw_downloadtype_t;
 
+#ifdef CONFIG_VIDEO_CAPTURE
 typedef enum capturevideoformat_e
 {
        CAPTUREVIDEOFORMAT_AVI_I420,
@@ -788,6 +789,7 @@ typedef struct capturevideostate_s
        void *formatspecific;
 }
 capturevideostate_t;
+#endif
 
 #define CL_MAX_DOWNLOADACKS 4
 
@@ -917,8 +919,10 @@ typedef struct client_static_s
        // extra user info for the "connect" command
        char connect_userinfo[MAX_USERINFO_STRING];
 
+#ifdef CONFIG_VIDEO_CAPTURE
        // video capture stuff
        capturevideostate_t capturevideo;
+#endif
 
        // crypto channel
        crypto_t crypto;