mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
c4cb51c63d
commit
50b36ce257
6 changed files with 24 additions and 12 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue