mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
libs: parser_frame: change macros for inlined functions
https://bugzilla.gnome.org/show_bug.cgi?id=797139
This commit is contained in:
parent
0e16691b09
commit
9970e15f67
1 changed files with 18 additions and 7 deletions
|
@ -72,15 +72,26 @@ void
|
||||||
gst_vaapi_parser_frame_append_unit(GstVaapiParserFrame *frame,
|
gst_vaapi_parser_frame_append_unit(GstVaapiParserFrame *frame,
|
||||||
GstVaapiDecoderUnit *unit);
|
GstVaapiDecoderUnit *unit);
|
||||||
|
|
||||||
#define gst_vaapi_parser_frame_ref(frame) \
|
static inline GstVaapiParserFrame *
|
||||||
gst_vaapi_mini_object_ref(GST_VAAPI_MINI_OBJECT(frame))
|
gst_vaapi_parser_frame_ref (GstVaapiParserFrame * frame)
|
||||||
|
{
|
||||||
|
return (GstVaapiParserFrame *)
|
||||||
|
gst_vaapi_mini_object_ref (GST_VAAPI_MINI_OBJECT (frame));
|
||||||
|
}
|
||||||
|
|
||||||
#define gst_vaapi_parser_frame_unref(frame) \
|
static inline void
|
||||||
gst_vaapi_mini_object_unref(GST_VAAPI_MINI_OBJECT(frame))
|
gst_vaapi_parser_frame_unref (GstVaapiParserFrame * frame)
|
||||||
|
{
|
||||||
|
gst_vaapi_mini_object_unref (GST_VAAPI_MINI_OBJECT (frame));
|
||||||
|
}
|
||||||
|
|
||||||
#define gst_vaapi_parser_frame_replace(old_frame_p, new_frame) \
|
static inline void
|
||||||
gst_vaapi_mini_object_replace((GstVaapiMiniObject **)(old_frame_p), \
|
gst_vaapi_parser_frame_replace(GstVaapiParserFrame * old_frame_p,
|
||||||
(GstVaapiMiniObject *)(new_frame))
|
GstVaapiParserFrame * new_frame)
|
||||||
|
{
|
||||||
|
gst_vaapi_mini_object_replace ((GstVaapiMiniObject **) old_frame_p,
|
||||||
|
(GstVaapiMiniObject *) new_frame);
|
||||||
|
}
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue