From 2f05268517c7214273cb5837780c45236fa17018 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 16 Aug 2013 13:47:31 +0100 Subject: [PATCH] video: make direct includes work again Not nice to break people's code if we can avoid it. Could add a warning in the next cycle, and then require single includes in the cycle after. https://bugzilla.gnome.org/show_bug.cgi?id=695889 --- gst-libs/gst/video/gstvideodecoder.h | 1 - gst-libs/gst/video/gstvideoutils.h | 5 ++++- gst-libs/gst/video/video-chroma.h | 3 +++ gst-libs/gst/video/video-frame.h | 9 +++++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/video/gstvideodecoder.h b/gst-libs/gst/video/gstvideodecoder.h index 7c16c0e..1bdb37d 100644 --- a/gst-libs/gst/video/gstvideodecoder.h +++ b/gst-libs/gst/video/gstvideodecoder.h @@ -26,7 +26,6 @@ #define _GST_VIDEO_DECODER_H_ #include -#include #include G_BEGIN_DECLS diff --git a/gst-libs/gst/video/gstvideoutils.h b/gst-libs/gst/video/gstvideoutils.h index 2851521..29a2c9a 100644 --- a/gst-libs/gst/video/gstvideoutils.h +++ b/gst-libs/gst/video/gstvideoutils.h @@ -19,11 +19,14 @@ * Boston, MA 02110-1301, USA. */ +#ifndef __GST_VIDEO_H__ +#include +#endif + #ifndef _GST_VIDEO_UTILS_H_ #define _GST_VIDEO_UTILS_H_ #include -#include G_BEGIN_DECLS #define GST_TYPE_VIDEO_CODEC_STATE \ diff --git a/gst-libs/gst/video/video-chroma.h b/gst-libs/gst/video/video-chroma.h index 8c450d2..717d43b 100644 --- a/gst-libs/gst/video/video-chroma.h +++ b/gst-libs/gst/video/video-chroma.h @@ -82,6 +82,9 @@ typedef enum { typedef struct _GstVideoChromaResample GstVideoChromaResample; +/* circular dependency, need to include this after defining the enums */ +#include + GstVideoChromaResample * gst_video_chroma_resample_new (GstVideoChromaMethod method, GstVideoChromaSite site, GstVideoChromaFlags flags, diff --git a/gst-libs/gst/video/video-frame.h b/gst-libs/gst/video/video-frame.h index fd56821..670806e 100644 --- a/gst-libs/gst/video/video-frame.h +++ b/gst-libs/gst/video/video-frame.h @@ -20,13 +20,10 @@ #ifndef __GST_VIDEO_FRAME_H__ #define __GST_VIDEO_FRAME_H__ -#include -#include +#include G_BEGIN_DECLS -#include - typedef struct _GstVideoFrame GstVideoFrame; /** @@ -49,6 +46,10 @@ typedef enum { GST_VIDEO_FRAME_FLAG_ONEFIELD = (1 << 3) } GstVideoFrameFlags; +/* circular dependency, need to include this after defining the enums */ +#include +#include + /** * GstVideoFrame: * @info: the #GstVideoInfo -- 2.7.4