From ca17451116f974090e624a9a221b6c694a9822ce Mon Sep 17 00:00:00 2001 From: philippegorley <philippe.gorley@savoirfairelinux.com> Date: Tue, 12 Jun 2018 11:35:43 -0400 Subject: [PATCH] misc: fix mismatched-tags warnings Change-Id: I32f59646ad7059dc7440aa6f278fd2e210c8108e --- src/media/media_buffer.h | 2 +- src/media/media_decoder.h | 12 ++++++------ src/media/media_filter.h | 6 +++--- src/media/media_io_handle.h | 2 +- src/media/video/video_scaler.h | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/media/media_buffer.h b/src/media/media_buffer.h index 245e58610e..e2fcb0a8ee 100644 --- a/src/media/media_buffer.h +++ b/src/media/media_buffer.h @@ -25,7 +25,7 @@ #include <memory> #include <functional> -class AVFrame; +struct AVFrame; namespace DRing { struct FrameBuffer; // from dring/videomanager_interface.h diff --git a/src/media/media_decoder.h b/src/media/media_decoder.h index 807e8ee251..5f1f82f2ac 100644 --- a/src/media/media_decoder.h +++ b/src/media/media_decoder.h @@ -40,17 +40,17 @@ #include <memory> #include <chrono> -class AVCodecContext; -class AVStream; -class AVDictionary; -class AVFormatContext; -class AVCodec; +struct AVCodecContext; +struct AVStream; +struct AVDictionary; +struct AVFormatContext; +struct AVCodec; enum AVMediaType; namespace ring { struct AudioFrame; -class AudioFormat; +struct AudioFormat; class RingBuffer; class Resampler; class MediaIOHandle; diff --git a/src/media/media_filter.h b/src/media/media_filter.h index 518a791224..b3278ef9b1 100644 --- a/src/media/media_filter.h +++ b/src/media/media_filter.h @@ -28,9 +28,9 @@ #include <string> #include <vector> -class AVFilterContext; -class AVFilterGraph; -class AVFilterInOut; +struct AVFilterContext; +struct AVFilterGraph; +struct AVFilterInOut; namespace ring { diff --git a/src/media/media_io_handle.h b/src/media/media_io_handle.h index 02b6e14360..ebb5d8907c 100644 --- a/src/media/media_io_handle.h +++ b/src/media/media_io_handle.h @@ -28,7 +28,7 @@ #include <vector> #ifndef AVFORMAT_AVIO_H -class AVIOContext; +struct AVIOContext; #endif typedef int(*io_readcallback)(void *opaque, uint8_t *buf, int buf_size); diff --git a/src/media/video/video_scaler.h b/src/media/video/video_scaler.h index d08e181bce..8f39c03859 100644 --- a/src/media/video/video_scaler.h +++ b/src/media/video/video_scaler.h @@ -25,7 +25,7 @@ #include "noncopyable.h" -class SwsContext; +struct SwsContext; namespace ring { namespace video { -- GitLab