Commit 013e5de8 authored by Alexandre Julliard's avatar Alexandre Julliard

evr: Make qsort and bsearch callback functions cdecl.

parent 04f0729d
...@@ -159,7 +159,7 @@ static struct video_mixer *impl_from_IMFClockStateSink(IMFClockStateSink *iface) ...@@ -159,7 +159,7 @@ static struct video_mixer *impl_from_IMFClockStateSink(IMFClockStateSink *iface)
return CONTAINING_RECORD(iface, struct video_mixer, IMFClockStateSink_iface); return CONTAINING_RECORD(iface, struct video_mixer, IMFClockStateSink_iface);
} }
static int video_mixer_compare_input_id(const void *a, const void *b) static int __cdecl video_mixer_compare_input_id(const void *a, const void *b)
{ {
const unsigned int *key = a; const unsigned int *key = a;
const struct input_stream *input = b; const struct input_stream *input = b;
...@@ -509,7 +509,7 @@ static HRESULT WINAPI video_mixer_transform_DeleteInputStream(IMFTransform *ifac ...@@ -509,7 +509,7 @@ static HRESULT WINAPI video_mixer_transform_DeleteInputStream(IMFTransform *ifac
return hr; return hr;
} }
static int video_mixer_add_input_sort_compare(const void *a, const void *b) static int __cdecl video_mixer_add_input_sort_compare(const void *a, const void *b)
{ {
const struct input_stream *left = a, *right = b; const struct input_stream *left = a, *right = b;
return left->id != right->id ? (left->id < right->id ? -1 : 1) : 0; return left->id != right->id ? (left->id < right->id ? -1 : 1) : 0;
...@@ -643,7 +643,7 @@ done: ...@@ -643,7 +643,7 @@ done:
return hr; return hr;
} }
static int rt_formats_sort_compare(const void *left, const void *right) static int __cdecl rt_formats_sort_compare(const void *left, const void *right)
{ {
const struct rt_format *format1 = left, *format2 = right; const struct rt_format *format1 = left, *format2 = right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment