mediafoundation: Use G_BEGIN_DECLS/G_END_DECLS pair everywhere
authorSeungha Yang <seungha@centricular.com>
Mon, 25 May 2020 11:59:50 +0000 (20:59 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 25 May 2020 15:09:20 +0000 (15:09 +0000)
... instead of extern "c" {} block.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1241>

sys/mediafoundation/gstmfcaptureengine.cpp
sys/mediafoundation/gstmfcapturewinrt.cpp
sys/mediafoundation/gstmfsourcereader.cpp
sys/mediafoundation/gstmftransform.cpp
sys/mediafoundation/gstmfutils.cpp
sys/mediafoundation/mediacapturewrapper.cpp

index 3bda2bf..66107d4 100644 (file)
 
 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);
index b0515f9..c98ff78 100644 (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
 {
index 62879d9..0f85030 100644 (file)
 
 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
 {
index 0d3f1d7..32ee71b 100644 (file)
 
 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
 {
index 22bcbb8..684855f 100644 (file)
 
 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
index f8c27bf..f24de3c 100644 (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)