mediafoundation: Use G_BEGIN_DECLS/G_END_DECLS pair everywhere

... instead of extern "c" {} block.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1241>
This commit is contained in:
Seungha Yang 2020-05-25 20:59:50 +09:00 committed by GStreamer Merge Bot
parent c4cb51c63d
commit 50b36ce257
6 changed files with 24 additions and 12 deletions

View file

@ -31,10 +31,12 @@
using namespace Microsoft::WRL;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_source_object_debug);
#define GST_CAT_DEFAULT gst_mf_source_object_debug
}
G_END_DECLS
static HRESULT gst_mf_capture_engine_on_event (GstMFCaptureEngine * engine,
IMFMediaEvent * event);

View file

@ -34,10 +34,12 @@ using namespace ABI::Windows::Media::MediaProperties;
using namespace ABI::Windows::Graphics::Imaging;
using namespace ABI::Windows::Foundation;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_source_object_debug);
#define GST_CAT_DEFAULT gst_mf_source_object_debug
}
G_END_DECLS
struct _GstMFCaptureWinRT
{

View file

@ -29,10 +29,12 @@
using namespace Microsoft::WRL;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_source_object_debug);
#define GST_CAT_DEFAULT gst_mf_source_object_debug
}
G_END_DECLS
typedef struct _GstMFStreamMediaType
{

View file

@ -30,10 +30,12 @@
using namespace Microsoft::WRL;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_transform_debug);
#define GST_CAT_DEFAULT gst_mf_transform_debug
}
G_END_DECLS
enum
{

View file

@ -27,10 +27,12 @@
using namespace Microsoft::WRL;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_utils_debug);
#define GST_CAT_DEFAULT gst_mf_utils_debug
}
G_END_DECLS
#define MAKE_RAW_FORMAT_CAPS(format) \
"video/x-raw, format = (string) " format

View file

@ -36,10 +36,12 @@ using namespace ABI::Windows::Foundation::Collections;
using namespace ABI::Windows::Media::Devices;
using namespace ABI::Windows::Media::MediaProperties;
extern "C" {
G_BEGIN_DECLS
GST_DEBUG_CATEGORY_EXTERN (gst_mf_source_object_debug);
#define GST_CAT_DEFAULT gst_mf_source_object_debug
}
G_END_DECLS
static std::string
convert_hstring_to_string (HString * hstr)