mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Use plain casting instead of typechecking
This commit is contained in:
parent
a5626f239a
commit
c2b0e9de25
4 changed files with 10 additions and 10 deletions
|
@ -167,7 +167,7 @@ G_INLINE_FUNC GstBufferList * gst_buffer_list_copy (const GstBufferList * list);
|
|||
static inline GstBufferList *
|
||||
gst_buffer_list_copy (const GstBufferList * list)
|
||||
{
|
||||
return GST_BUFFER_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (list)));
|
||||
return GST_BUFFER_LIST_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (list)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -229,7 +229,7 @@ typedef struct _GstEventClass GstEventClass;
|
|||
* Since: 0.10.3
|
||||
*/
|
||||
#define gst_event_replace(old_event,new_event) \
|
||||
gst_mini_object_replace ((GstMiniObject **)(old_event), GST_MINI_OBJECT (new_event))
|
||||
gst_mini_object_replace ((GstMiniObject **)(old_event), GST_MINI_OBJECT_CAST (new_event))
|
||||
|
||||
/**
|
||||
* GstSeekType:
|
||||
|
@ -356,7 +356,7 @@ G_INLINE_FUNC GstEvent * gst_event_ref (GstEvent * event);
|
|||
static inline GstEvent *
|
||||
gst_event_ref (GstEvent * event)
|
||||
{
|
||||
return (GstEvent *) gst_mini_object_ref (GST_MINI_OBJECT (event));
|
||||
return (GstEvent *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (event));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -372,7 +372,7 @@ G_INLINE_FUNC void gst_event_unref (GstEvent * event);
|
|||
static inline void
|
||||
gst_event_unref (GstEvent * event)
|
||||
{
|
||||
gst_mini_object_unref (GST_MINI_OBJECT (event));
|
||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (event));
|
||||
}
|
||||
|
||||
/* copy event */
|
||||
|
@ -389,7 +389,7 @@ G_INLINE_FUNC GstEvent * gst_event_copy (const GstEvent * event);
|
|||
static inline GstEvent *
|
||||
gst_event_copy (const GstEvent * event)
|
||||
{
|
||||
return GST_EVENT_CAST (gst_mini_object_copy (GST_MINI_OBJECT (event)));
|
||||
return GST_EVENT_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (event)));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ G_INLINE_FUNC GstMessage * gst_message_ref (GstMessage * msg);
|
|||
static inline GstMessage *
|
||||
gst_message_ref (GstMessage * msg)
|
||||
{
|
||||
return (GstMessage *) gst_mini_object_ref (GST_MINI_OBJECT (msg));
|
||||
return (GstMessage *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (msg));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -349,7 +349,7 @@ gst_message_copy (const GstMessage * msg)
|
|||
*
|
||||
* MT safe
|
||||
*/
|
||||
#define gst_message_make_writable(msg) GST_MESSAGE_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT (msg)))
|
||||
#define gst_message_make_writable(msg) GST_MESSAGE_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (msg)))
|
||||
|
||||
/* identifiers for events and messages */
|
||||
guint32 gst_message_get_seqnum (GstMessage *message);
|
||||
|
|
|
@ -201,7 +201,7 @@ G_INLINE_FUNC GstQuery * gst_query_ref (GstQuery * q);
|
|||
static inline GstQuery *
|
||||
gst_query_ref (GstQuery * q)
|
||||
{
|
||||
return GST_QUERY (gst_mini_object_ref (GST_MINI_OBJECT_CAST (q)));
|
||||
return GST_QUERY_CAST (gst_mini_object_ref (GST_MINI_OBJECT_CAST (q)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -237,7 +237,7 @@ G_INLINE_FUNC GstQuery * gst_query_copy (const GstQuery * q);
|
|||
static inline GstQuery *
|
||||
gst_query_copy (const GstQuery * q)
|
||||
{
|
||||
return GST_QUERY (gst_mini_object_copy (GST_MINI_OBJECT_CAST (q)));
|
||||
return GST_QUERY_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CAST (q)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -246,7 +246,7 @@ gst_query_copy (const GstQuery * q)
|
|||
*
|
||||
* Makes a writable query from the given query.
|
||||
*/
|
||||
#define gst_query_make_writable(q) GST_QUERY (gst_mini_object_make_writable (GST_MINI_OBJECT (q)))
|
||||
#define gst_query_make_writable(q) GST_QUERY_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (q)))
|
||||
|
||||
/* position query */
|
||||
GstQuery* gst_query_new_position (GstFormat format);
|
||||
|
|
Loading…
Reference in a new issue