From: Sebastian Dröge Date: Tue, 20 Jun 2017 06:57:01 +0000 (+0300) Subject: base: Export boxed type copy/free functions for the remaining types X-Git-Tag: 1.12.1~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=226d01a9415df41e0abf7360719b87c6682e53eb;p=platform%2Fupstream%2Fgstreamer.git base: Export boxed type copy/free functions for the remaining types --- diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index df67dd0..4b45280 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -655,7 +655,7 @@ gst_base_parse_get_property (GObject * object, guint prop_id, GValue * value, } } -static GstBaseParseFrame * +GstBaseParseFrame * gst_base_parse_frame_copy (GstBaseParseFrame * frame) { GstBaseParseFrame *copy; diff --git a/libs/gst/base/gstbaseparse.h b/libs/gst/base/gstbaseparse.h index abf6321..200af44 100644 --- a/libs/gst/base/gstbaseparse.h +++ b/libs/gst/base/gstbaseparse.h @@ -285,6 +285,7 @@ GstBaseParseFrame * gst_base_parse_frame_new (GstBuffer * buffer, void gst_base_parse_frame_init (GstBaseParseFrame * frame); +GstBaseParseFrame * gst_base_parse_frame_copy (GstBaseParseFrame * frame); void gst_base_parse_frame_free (GstBaseParseFrame * frame); GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse, diff --git a/libs/gst/base/gstflowcombiner.c b/libs/gst/base/gstflowcombiner.c index 9aba81d..09639b9 100644 --- a/libs/gst/base/gstflowcombiner.c +++ b/libs/gst/base/gstflowcombiner.c @@ -72,9 +72,6 @@ struct _GstFlowCombiner volatile gint ref_count; }; -static GstFlowCombiner *gst_flow_combiner_ref (GstFlowCombiner * combiner); -static void gst_flow_combiner_unref (GstFlowCombiner * combiner); - GST_DEBUG_CATEGORY_STATIC (flowcombiner_dbg); #define GST_CAT_DEFAULT flowcombiner_dbg @@ -121,7 +118,7 @@ gst_flow_combiner_free (GstFlowCombiner * combiner) gst_flow_combiner_unref (combiner); } -static GstFlowCombiner * +GstFlowCombiner * gst_flow_combiner_ref (GstFlowCombiner * combiner) { g_return_val_if_fail (combiner != NULL, NULL); @@ -131,7 +128,7 @@ gst_flow_combiner_ref (GstFlowCombiner * combiner) return combiner; } -static void +void gst_flow_combiner_unref (GstFlowCombiner * combiner) { g_return_if_fail (combiner != NULL); diff --git a/libs/gst/base/gstflowcombiner.h b/libs/gst/base/gstflowcombiner.h index 2ea3937..2a494b6 100644 --- a/libs/gst/base/gstflowcombiner.h +++ b/libs/gst/base/gstflowcombiner.h @@ -43,6 +43,10 @@ typedef struct _GstFlowCombiner GstFlowCombiner; GstFlowCombiner * gst_flow_combiner_new (void); +GstFlowCombiner * gst_flow_combiner_ref (GstFlowCombiner * combiner); + +void gst_flow_combiner_unref (GstFlowCombiner * combiner); + void gst_flow_combiner_free (GstFlowCombiner * combiner); GstFlowReturn gst_flow_combiner_update_flow (GstFlowCombiner * combiner, GstFlowReturn fret); diff --git a/win32/common/libgstbase.def b/win32/common/libgstbase.def index 740772d..71f75dc 100644 --- a/win32/common/libgstbase.def +++ b/win32/common/libgstbase.def @@ -34,6 +34,7 @@ EXPORTS gst_base_parse_convert_default gst_base_parse_drain gst_base_parse_finish_frame + gst_base_parse_frame_copy gst_base_parse_frame_free gst_base_parse_frame_get_type gst_base_parse_frame_init @@ -285,8 +286,10 @@ EXPORTS gst_flow_combiner_free gst_flow_combiner_get_type gst_flow_combiner_new + gst_flow_combiner_ref gst_flow_combiner_remove_pad gst_flow_combiner_reset + gst_flow_combiner_unref gst_flow_combiner_update_flow gst_flow_combiner_update_pad_flow gst_push_src_get_type