From 5b50ce871e0055d6a00660d6ef81e1533a023a03 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Mon, 16 Jul 2018 14:08:43 +0200 Subject: [PATCH] mpeg2: remove unused includes from header The MPEG2 header doesn't need any header, since it's only using pointers. Remove them, and add them to the mpeg2 file when needed. Signed-off-by: Maxime Ripard --- src/mpeg2.c | 2 ++ src/mpeg2.h | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mpeg2.c b/src/mpeg2.c index 3b0421c..f397ea3 100644 --- a/src/mpeg2.c +++ b/src/mpeg2.c @@ -23,8 +23,10 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include "context.h" #include "sunxi_cedrus.h" #include "mpeg2.h" +#include "surface.h" #include #include diff --git a/src/mpeg2.h b/src/mpeg2.h index e665cf5..fd3e3fa 100644 --- a/src/mpeg2.h +++ b/src/mpeg2.h @@ -26,14 +26,10 @@ #ifndef _MPEG2_H_ #define _MPEG2_H_ -#include - -#include "context.h" -#include "buffer.h" - -#include "surface.h" +struct object_surface; +struct sunxi_cedrus_driver_data; int mpeg2_set_controls(struct sunxi_cedrus_driver_data *driver_data, - struct object_surface *surface_object); + struct object_surface *surface_object); #endif