tests: allow GLX output, if available and selected.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 23 Jul 2012 13:20:23 +0000 (15:20 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 24 Jul 2012 13:57:57 +0000 (15:57 +0200)
tests/output.c

index dd76bc7..583347c 100644 (file)
 # include <gst/vaapi/gstvaapidisplay_x11.h>
 # include <gst/vaapi/gstvaapiwindow_x11.h>
 #endif
+#if USE_GLX
+# include <gst/vaapi/gstvaapidisplay_glx.h>
+# include <gst/vaapi/gstvaapiwindow_glx.h>
+#endif
 #include "output.h"
 
 static const VideoOutputInfo *g_video_output;
@@ -37,6 +41,12 @@ static const VideoOutputInfo g_video_outputs[] = {
       gst_vaapi_window_x11_new
     },
 #endif
+#if USE_GLX
+    { "glx",
+      gst_vaapi_display_glx_new,
+      gst_vaapi_window_glx_new
+    },
+#endif
     { NULL, }
 };