Change some types to match their prototypes

Particularly note that the underlying integer type of the enum
GstTypeFindProbability is implementation dependent and may not match
guint.

https://bugzilla.gnome.org/show_bug.cgi?id=774293
This commit is contained in:
Scott D Phillips 2016-11-11 10:30:44 -08:00 committed by Sebastian Dröge
parent b876b9fbba
commit 5a72c23a54
3 changed files with 4 additions and 6 deletions

View file

@ -501,7 +501,7 @@ GstEvent * gst_event_new_select_streams (GList *streams);
void gst_event_parse_select_streams (GstEvent *event, GList **streams); void gst_event_parse_select_streams (GstEvent *event, GList **streams);
/* stream-group-done event */ /* stream-group-done event */
GstEvent * gst_event_new_stream_group_done (const guint group_id) G_GNUC_MALLOC; GstEvent * gst_event_new_stream_group_done (guint group_id) G_GNUC_MALLOC;
void gst_event_parse_stream_group_done (GstEvent *event, guint *group_id); void gst_event_parse_stream_group_done (GstEvent *event, guint *group_id);
/* EOS event */ /* EOS event */

View file

@ -134,7 +134,7 @@ SetThreadName (DWORD dwThreadID, LPCSTR szThreadName)
__try { __try {
RaiseException (0x406D1388, 0, sizeof (info) / sizeof (DWORD), RaiseException (0x406D1388, 0, sizeof (info) / sizeof (DWORD),
(DWORD *) & info); (const ULONG_PTR *) &info);
} }
__except (EXCEPTION_CONTINUE_EXECUTION) { __except (EXCEPTION_CONTINUE_EXECUTION) {
} }

View file

@ -217,8 +217,7 @@ map_failed:
* If given @probability is higher, replace previously store caps. * If given @probability is higher, replace previously store caps.
*/ */
static void static void
helper_find_suggest (gpointer data, GstTypeFindProbability probability, helper_find_suggest (gpointer data, guint probability, GstCaps * caps)
GstCaps * caps)
{ {
GstTypeFindHelper *helper = (GstTypeFindHelper *) data; GstTypeFindHelper *helper = (GstTypeFindHelper *) data;
@ -462,8 +461,7 @@ buf_helper_find_peek (gpointer data, gint64 off, guint size)
* If given @probability is higher, replace previously store caps. * If given @probability is higher, replace previously store caps.
*/ */
static void static void
buf_helper_find_suggest (gpointer data, GstTypeFindProbability probability, buf_helper_find_suggest (gpointer data, guint probability, GstCaps * caps)
GstCaps * caps)
{ {
GstTypeFindBufHelper *helper = (GstTypeFindBufHelper *) data; GstTypeFindBufHelper *helper = (GstTypeFindBufHelper *) data;