mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 22:58:16 +00:00
dash: sink references of all MDP objects
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6527>
This commit is contained in:
parent
1d7b7b04d1
commit
e1fa26e16f
23 changed files with 106 additions and 21 deletions
|
@ -262,7 +262,11 @@ gst_mpd_adaptation_set_node_init (GstMPDAdaptationSetNode * self)
|
||||||
GstMPDAdaptationSetNode *
|
GstMPDAdaptationSetNode *
|
||||||
gst_mpd_adaptation_set_node_new (void)
|
gst_mpd_adaptation_set_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_ADAPTATION_SET_NODE, NULL);
|
GstMPDAdaptationSetNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_ADAPTATION_SET_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -155,7 +155,11 @@ gst_mpd_baseurl_node_init (GstMPDBaseURLNode * self)
|
||||||
GstMPDBaseURLNode *
|
GstMPDBaseURLNode *
|
||||||
gst_mpd_baseurl_node_new (void)
|
gst_mpd_baseurl_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_BASEURL_NODE, NULL);
|
GstMPDBaseURLNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_BASEURL_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -459,9 +459,13 @@ gst_mpd_client_init (GstMPDClient * client)
|
||||||
GstMPDClient *
|
GstMPDClient *
|
||||||
gst_mpd_client_new (void)
|
gst_mpd_client_new (void)
|
||||||
{
|
{
|
||||||
|
GstMPDClient *ret;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_dash_mpd_client_debug, "dashmpdclient", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_dash_mpd_client_debug, "dashmpdclient", 0,
|
||||||
"DashmMpdClient");
|
"DashmMpdClient");
|
||||||
return g_object_new (GST_TYPE_MPD_CLIENT, NULL);
|
ret = g_object_new (GST_TYPE_MPD_CLIENT, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
GstMPDClient *
|
GstMPDClient *
|
||||||
|
|
|
@ -109,7 +109,11 @@ gst_mpd_content_component_node_init (GstMPDContentComponentNode * self)
|
||||||
GstMPDContentComponentNode *
|
GstMPDContentComponentNode *
|
||||||
gst_mpd_content_component_node_new (void)
|
gst_mpd_content_component_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_CONTENT_COMPONENT_NODE, NULL);
|
GstMPDContentComponentNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_CONTENT_COMPONENT_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -88,6 +88,7 @@ gst_mpd_descriptor_type_node_new (const gchar * name)
|
||||||
GstMPDDescriptorTypeNode *self =
|
GstMPDDescriptorTypeNode *self =
|
||||||
g_object_new (GST_TYPE_MPD_DESCRIPTOR_TYPE_NODE, NULL);
|
g_object_new (GST_TYPE_MPD_DESCRIPTOR_TYPE_NODE, NULL);
|
||||||
self->node_name = g_strdup (name);
|
self->node_name = g_strdup (name);
|
||||||
|
gst_object_ref_sink (self);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,11 @@ gst_mpd_location_node_init (GstMPDLocationNode * self)
|
||||||
GstMPDLocationNode *
|
GstMPDLocationNode *
|
||||||
gst_mpd_location_node_new (void)
|
gst_mpd_location_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_LOCATION_NODE, NULL);
|
GstMPDLocationNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_LOCATION_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -83,7 +83,10 @@ gst_mpd_metrics_node_init (GstMPDMetricsNode * self)
|
||||||
GstMPDMetricsNode *
|
GstMPDMetricsNode *
|
||||||
gst_mpd_metrics_node_new (void)
|
gst_mpd_metrics_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_METRICS_NODE, NULL);
|
GstMPDMetricsNode *ret;
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_METRICS_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -64,7 +64,11 @@ gst_mpd_metrics_range_node_init (GstMPDMetricsRangeNode * self)
|
||||||
GstMPDMetricsRangeNode *
|
GstMPDMetricsRangeNode *
|
||||||
gst_mpd_metrics_range_node_new (void)
|
gst_mpd_metrics_range_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_METRICS_RANGE_NODE, NULL);
|
GstMPDMetricsRangeNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_METRICS_RANGE_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -203,7 +203,11 @@ gst_mpd_period_node_init (GstMPDPeriodNode * self)
|
||||||
GstMPDPeriodNode *
|
GstMPDPeriodNode *
|
||||||
gst_mpd_period_node_new (void)
|
gst_mpd_period_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_PERIOD_NODE, NULL);
|
GstMPDPeriodNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_PERIOD_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -114,7 +114,11 @@ gst_mpd_program_information_node_init (GstMPDProgramInformationNode * self)
|
||||||
GstMPDProgramInformationNode *
|
GstMPDProgramInformationNode *
|
||||||
gst_mpd_program_information_node_new (void)
|
gst_mpd_program_information_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_PROGRAM_INFORMATION_NODE, NULL);
|
GstMPDProgramInformationNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_PROGRAM_INFORMATION_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -53,7 +53,11 @@ gst_mpd_reporting_node_init (GstMPDReportingNode * self)
|
||||||
GstMPDReportingNode *
|
GstMPDReportingNode *
|
||||||
gst_mpd_reporting_node_new (void)
|
gst_mpd_reporting_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_REPORTING_NODE, NULL);
|
GstMPDReportingNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_REPORTING_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -187,7 +187,11 @@ gst_mpd_representation_node_init (GstMPDRepresentationNode * self)
|
||||||
GstMPDRepresentationNode *
|
GstMPDRepresentationNode *
|
||||||
gst_mpd_representation_node_new (void)
|
gst_mpd_representation_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_REPRESENTATION_NODE, NULL);
|
GstMPDRepresentationNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_REPRESENTATION_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -405,7 +405,11 @@ gst_mpd_root_node_init (GstMPDRootNode * self)
|
||||||
GstMPDRootNode *
|
GstMPDRootNode *
|
||||||
gst_mpd_root_node_new (void)
|
gst_mpd_root_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_ROOT_NODE, NULL);
|
GstMPDRootNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_ROOT_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -101,7 +101,11 @@ gst_mpd_segment_base_node_init (GstMPDSegmentBaseNode * self)
|
||||||
GstMPDSegmentBaseNode *
|
GstMPDSegmentBaseNode *
|
||||||
gst_mpd_segment_base_node_new (void)
|
gst_mpd_segment_base_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SEGMENT_BASE_NODE, NULL);
|
GstMPDSegmentBaseNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SEGMENT_BASE_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -84,7 +84,11 @@ gst_mpd_segment_list_node_init (GstMPDSegmentListNode * self)
|
||||||
GstMPDSegmentListNode *
|
GstMPDSegmentListNode *
|
||||||
gst_mpd_segment_list_node_new (void)
|
gst_mpd_segment_list_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SEGMENT_LIST_NODE, NULL);
|
GstMPDSegmentListNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SEGMENT_LIST_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -175,7 +175,11 @@ gst_mpd_segment_template_node_init (GstMPDSegmentTemplateNode * self)
|
||||||
GstMPDSegmentTemplateNode *
|
GstMPDSegmentTemplateNode *
|
||||||
gst_mpd_segment_template_node_new (void)
|
gst_mpd_segment_template_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SEGMENT_TEMPLATE_NODE, NULL);
|
GstMPDSegmentTemplateNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SEGMENT_TEMPLATE_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -78,7 +78,11 @@ gst_mpd_segment_timeline_node_init (GstMPDSegmentTimelineNode * self)
|
||||||
GstMPDSegmentTimelineNode *
|
GstMPDSegmentTimelineNode *
|
||||||
gst_mpd_segment_timeline_node_new (void)
|
gst_mpd_segment_timeline_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SEGMENT_TIMELINE_NODE, NULL);
|
GstMPDSegmentTimelineNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SEGMENT_TIMELINE_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -139,7 +139,11 @@ gst_mpd_segment_url_node_init (GstMPDSegmentURLNode * self)
|
||||||
GstMPDSegmentURLNode *
|
GstMPDSegmentURLNode *
|
||||||
gst_mpd_segment_url_node_new (void)
|
gst_mpd_segment_url_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SEGMENT_URL_NODE, NULL);
|
GstMPDSegmentURLNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SEGMENT_URL_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -66,7 +66,11 @@ gst_mpd_s_node_init (GstMPDSNode * self)
|
||||||
GstMPDSNode *
|
GstMPDSNode *
|
||||||
gst_mpd_s_node_new (void)
|
gst_mpd_s_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_S_NODE, NULL);
|
GstMPDSNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_S_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -98,7 +98,11 @@ gst_mpd_sub_representation_node_init (GstMPDSubRepresentationNode * self)
|
||||||
GstMPDSubRepresentationNode *
|
GstMPDSubRepresentationNode *
|
||||||
gst_mpd_sub_representation_node_new (void)
|
gst_mpd_sub_representation_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SUB_REPRESENTATION_NODE, NULL);
|
GstMPDSubRepresentationNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SUB_REPRESENTATION_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -77,7 +77,11 @@ gst_mpd_subset_node_init (GstMPDSubsetNode * self)
|
||||||
GstMPDSubsetNode *
|
GstMPDSubsetNode *
|
||||||
gst_mpd_subset_node_new (void)
|
gst_mpd_subset_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_SUBSET_NODE, NULL);
|
GstMPDSubsetNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_SUBSET_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -82,6 +82,7 @@ gst_mpd_url_type_node_new (const gchar * name)
|
||||||
{
|
{
|
||||||
GstMPDURLTypeNode *self = g_object_new (GST_TYPE_MPD_URL_TYPE_NODE, NULL);
|
GstMPDURLTypeNode *self = g_object_new (GST_TYPE_MPD_URL_TYPE_NODE, NULL);
|
||||||
self->node_name = g_strdup (name);
|
self->node_name = g_strdup (name);
|
||||||
|
gst_object_ref_sink (self);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,11 @@ gst_mpd_utctiming_node_init (GstMPDUTCTimingNode * self)
|
||||||
GstMPDUTCTimingNode *
|
GstMPDUTCTimingNode *
|
||||||
gst_mpd_utctiming_node_new (void)
|
gst_mpd_utctiming_node_new (void)
|
||||||
{
|
{
|
||||||
return g_object_new (GST_TYPE_MPD_UTCTIMING_NODE, NULL);
|
GstMPDUTCTimingNode *ret;
|
||||||
|
|
||||||
|
ret = g_object_new (GST_TYPE_MPD_UTCTIMING_NODE, NULL);
|
||||||
|
gst_object_ref_sink (ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue