From 073831128ba34d1d29ce62fc7f4c096156ef1c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Oct 2024 11:49:05 +0300 Subject: [PATCH] uridecodebin3: Remove "source" property There is not necessarily a single urisourcebin inside uridecodebin3 so having a single source property makes little sense. Additionally, this property was never hooked up at all and always returned NULL. Part-of: --- .../docs/plugins/gst_plugins_cache.json | 11 ----------- .../gst/playback/gsturidecodebin3.c | 13 ------------- 2 files changed, 24 deletions(-) diff --git a/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json index 9e94e4d8de..2f8b842f9f 100644 --- a/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json @@ -12289,17 +12289,6 @@ "type": "guint64", "writable": true }, - "source": { - "blurb": "Source object used", - "conditionally-available": false, - "construct": false, - "construct-only": false, - "controllable": false, - "mutable": "null", - "readable": true, - "type": "GstElement", - "writable": false - }, "suburi": { "blurb": "Optional URI of a subtitle", "conditionally-available": false, diff --git a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c index edd49d0505..13d34a509c 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c @@ -220,7 +220,6 @@ struct _GstURIDecodeBin3 GstBin parent_instance; /* Properties */ - GstElement *source; guint64 connection_speed; /* In bits/sec (0 = unknown) */ GstCaps *caps; guint64 buffer_duration; /* When buffering, buffer duration (ns) */ @@ -312,7 +311,6 @@ enum PROP_CURRENT_URI, PROP_SUBURI, PROP_CURRENT_SUBURI, - PROP_SOURCE, PROP_CONNECTION_SPEED, PROP_BUFFER_SIZE, PROP_BUFFER_DURATION, @@ -444,10 +442,6 @@ gst_uri_decode_bin3_class_init (GstURIDecodeBin3Class * klass) "The currently playing URI of a subtitle", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_SOURCE, - g_param_spec_object ("source", "Source", "Source object used", - GST_TYPE_ELEMENT, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_CONNECTION_SPEED, g_param_spec_uint64 ("connection-speed", "Connection Speed", "Network connection speed in kbps (0 = unknown)", @@ -1700,13 +1694,6 @@ gst_uri_decode_bin3_get_property (GObject * object, guint prop_id, } break; } - case PROP_SOURCE: - { - GST_OBJECT_LOCK (dec); - g_value_set_object (value, dec->source); - GST_OBJECT_UNLOCK (dec); - break; - } case PROP_CONNECTION_SPEED: GST_OBJECT_LOCK (dec); g_value_set_uint64 (value, dec->connection_speed / 1000);