mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
misc: Fix warnings on Cerbero MinGW
gstladspa.c:360:5: error: zero-length ms_printf format string [-Werror=format-zero-length] vad_private.c:108:3: error: this decimal constant is unsigned only in ISO C90 [-Werror] gstdecklinkvideosink.cpp:478:32: error: comparison between 'BMDTimecodeFormat {aka enum _BMDTimecodeFormat}' and 'enum GstDecklinkTimecodeFormat' [-Werror=enum-compare] win/DeckLinkAPI_i.c:72:8: error: extra tokens at end of #endif directive [-Werror] win/DeckLinkAPIDispatch.cpp:35:10: error: unused variable 'res' [-Werror=unused-variable] gstwasapiutil.c:733:3: error: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'DWORD' [-Werror=format] gstwasapiutil.c:733:3: error: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'guint64' [-Werror=format] kshelpers.c:446:3: error: missing braces around initializer [-Werror=missing-braces] kshelpers.c:446:3: error: (near initialization for 'known_property_sets[0].guid.Data4') [-Werror=missing-braces]
This commit is contained in:
parent
6c953438f5
commit
fffb2aa12f
7 changed files with 15 additions and 8 deletions
|
@ -357,7 +357,7 @@ ladspa_plugin_path_search (GstPlugin * plugin)
|
||||||
g_string_append_printf (ladspa_path,
|
g_string_append_printf (ladspa_path,
|
||||||
"%s" G_SEARCHPATH_SEPARATOR_S GST_LADSPA_DEFAULT_PATH, search_path);
|
"%s" G_SEARCHPATH_SEPARATOR_S GST_LADSPA_DEFAULT_PATH, search_path);
|
||||||
} else {
|
} else {
|
||||||
g_string_append_printf (ladspa_path, GST_LADSPA_DEFAULT_PATH);
|
g_string_append (ladspa_path, GST_LADSPA_DEFAULT_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
|
|
@ -105,7 +105,7 @@ void
|
||||||
vad_set_threshold (struct _vad_s *p, gint threshold_db)
|
vad_set_threshold (struct _vad_s *p, gint threshold_db)
|
||||||
{
|
{
|
||||||
gint power = (gint) (threshold_db / 10.0);
|
gint power = (gint) (threshold_db / 10.0);
|
||||||
p->threshold = (guint64) (pow (10, (power)) * 4294967295);
|
p->threshold = (guint64) (pow (10, (power)) * 4294967295UL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
|
|
|
@ -475,8 +475,8 @@ gst_decklink_video_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
* Note that this flag will have no effect in practice if the video stream
|
* Note that this flag will have no effect in practice if the video stream
|
||||||
* does not contain timecode metadata.
|
* does not contain timecode metadata.
|
||||||
*/
|
*/
|
||||||
if (self->timecode_format == GST_DECKLINK_TIMECODE_FORMAT_VITC ||
|
if ((gint64) self->timecode_format == (gint64) GST_DECKLINK_TIMECODE_FORMAT_VITC ||
|
||||||
self->timecode_format == GST_DECKLINK_TIMECODE_FORMAT_VITCFIELD2)
|
(gint64) self->timecode_format == (gint64) GST_DECKLINK_TIMECODE_FORMAT_VITCFIELD2)
|
||||||
flags = bmdVideoOutputVITC;
|
flags = bmdVideoOutputVITC;
|
||||||
else
|
else
|
||||||
flags = bmdVideoOutputRP188;
|
flags = bmdVideoOutputRP188;
|
||||||
|
|
|
@ -32,9 +32,9 @@ extern "C" {
|
||||||
IDeckLinkIterator* CreateDeckLinkIteratorInstance (void)
|
IDeckLinkIterator* CreateDeckLinkIteratorInstance (void)
|
||||||
{
|
{
|
||||||
IDeckLinkIterator *deckLinkIterator = NULL;
|
IDeckLinkIterator *deckLinkIterator = NULL;
|
||||||
HRESULT res = CoCreateInstance(CLSID_CDeckLinkIterator, NULL, CLSCTX_ALL,
|
CoCreateInstance(CLSID_CDeckLinkIterator, NULL, CLSCTX_ALL,
|
||||||
IID_IDeckLinkIterator, (void**)&deckLinkIterator);
|
IID_IDeckLinkIterator, (void**)&deckLinkIterator);
|
||||||
return deckLinkIterator;
|
return deckLinkIterator;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -69,7 +69,7 @@ typedef IID CLSID;
|
||||||
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
|
||||||
const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
|
||||||
|
|
||||||
#endif !_MIDL_USE_GUIDDEF_
|
#endif // !_MIDL_USE_GUIDDEF_
|
||||||
|
|
||||||
MIDL_DEFINE_GUID(IID, LIBID_DeckLinkAPI,0xD864517A,0xEDD5,0x466D,0x86,0x7D,0xC8,0x19,0xF1,0xC0,0x52,0xBB);
|
MIDL_DEFINE_GUID(IID, LIBID_DeckLinkAPI,0xD864517A,0xEDD5,0x466D,0x86,0x7D,0xC8,0x19,0xF1,0xC0,0x52,0xBB);
|
||||||
|
|
||||||
|
|
|
@ -730,7 +730,8 @@ gst_wasapi_util_waveformatex_to_channel_mask (WAVEFORMATEXTENSIBLE * format,
|
||||||
|
|
||||||
/* XXX: Warn if some channel masks couldn't be mapped? */
|
/* XXX: Warn if some channel masks couldn't be mapped? */
|
||||||
|
|
||||||
GST_DEBUG ("Converted WASAPI mask 0x%x -> 0x%x", dwChannelMask, mask);
|
GST_DEBUG ("Converted WASAPI mask 0x%" G_GINT64_MODIFIER "x -> 0x%"
|
||||||
|
G_GINT64_MODIFIER "x", (guint64) dwChannelMask, (guint64) mask);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (out_position)
|
if (out_position)
|
||||||
|
|
|
@ -442,6 +442,12 @@ typedef struct
|
||||||
0x9B496CE1, 0x811B, 0x11cf, { 0x8C, 0x77, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 }
|
0x9B496CE1, 0x811B, 0x11cf, { 0x8C, 0x77, 0x00, 0xAA, 0x00, 0x6B, 0x68, 0x14 }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* GCC warns about this, but it seems to be correct and MSVC doesn't warn about
|
||||||
|
* it. XXX: Check again after the toolchain is updated:
|
||||||
|
* https://gitlab.freedesktop.org/gstreamer/cerbero/merge_requests/69 */
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic ignored "-Wmissing-braces"
|
||||||
|
#endif
|
||||||
static const KsPropertySetMapping known_property_sets[] = {
|
static const KsPropertySetMapping known_property_sets[] = {
|
||||||
{{STATIC_KSPROPSETID_General}, "General"},
|
{{STATIC_KSPROPSETID_General}, "General"},
|
||||||
{{STATIC_KSPROPSETID_MediaSeeking}, "MediaSeeking"},
|
{{STATIC_KSPROPSETID_MediaSeeking}, "MediaSeeking"},
|
||||||
|
|
Loading…
Reference in a new issue