sysdeps: split out GStreamer API compatibility glue to "gstcompat.h".
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Mar 2013 17:12:18 +0000 (18:12 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Mar 2013 17:30:09 +0000 (18:30 +0100)
gst-libs/gst/vaapi/Makefile.am
gst-libs/gst/vaapi/gstcompat.h [new file with mode: 0644]
gst-libs/gst/vaapi/sysdeps.h

index cec8670..f007b0f 100644 (file)
@@ -103,6 +103,7 @@ libgstvaapi_source_h =                              \
 
 libgstvaapi_source_priv_h =                    \
        glibcompat.h                            \
+       gstcompat.h                             \
        gstvaapi_priv.h                         \
        gstvaapicodec_objects.h                 \
        gstvaapicompat.h                        \
diff --git a/gst-libs/gst/vaapi/gstcompat.h b/gst-libs/gst/vaapi/gstcompat.h
new file mode 100644 (file)
index 0000000..45de7f4
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ *  gstcompat.h - Compatibility glue for GStreamer
+ *
+ *  Copyright (C) 2013 Intel Corporation
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public License
+ *  as published by the Free Software Foundation; either version 2.1
+ *  of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free
+ *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301 USA
+ */
+
+#ifndef GST_COMPAT_H
+#define GST_COMPAT_H
+
+#include <gst/gst.h>
+
+/* GstVideoOverlayComposition */
+#include <gst/video/video-overlay-composition.h>
+
+#ifndef HAVE_GST_VIDEO_OVERLAY_HWCAPS
+#define gst_video_overlay_rectangle_get_flags(rect) (0)
+#define gst_video_overlay_rectangle_get_global_alpha(rect) (1.0f)
+#endif
+
+#endif /* GST_COMPAT_H */
index 1e675c7..467118e 100644 (file)
 #include <string.h>
 
 #include "glibcompat.h"
-
-/* <gst/video/video-overlay-composition.h> compatibility glue */
-#ifndef HAVE_GST_VIDEO_OVERLAY_HWCAPS
-# define gst_video_overlay_rectangle_get_flags(rect) (0)
-# define gst_video_overlay_rectangle_get_global_alpha(rect) (1.0f)
-#endif
+#include "gstcompat.h"
 
 #endif /* SYSDEPS_H */