discoverer: Fix typos

discovererd / discoverered -> discovered

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7733>
This commit is contained in:
Thibault Saunier 2024-10-28 12:38:39 -03:00 committed by GStreamer Marge Bot
parent 5ed2af5083
commit ec2b3cb200

View file

@ -192,7 +192,7 @@ static void gst_discoverer_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
static gboolean _setup_locked (GstDiscoverer * dc);
static void handle_current_async (GstDiscoverer * dc);
static gboolean emit_discovererd_and_next (GstDiscoverer * dc);
static gboolean emit_discovered_and_next (GstDiscoverer * dc);
static GVariant *gst_discoverer_info_to_variant_recurse (GstDiscovererStreamInfo
* sinfo, GstDiscovererSerializeFlags flags);
static GstDiscovererStreamInfo *_parse_discovery (GVariant * variant,
@ -1344,7 +1344,7 @@ setup_next_uri_locked (GstDiscoverer * dc)
handle_current_async (dc);
} else {
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
(GSourceFunc) emit_discovererd_and_next, gst_object_ref (dc),
(GSourceFunc) emit_discovered_and_next, gst_object_ref (dc),
gst_object_unref);
}
} else {
@ -1377,14 +1377,13 @@ serialize_info_if_required (GstDiscoverer * dc, GstDiscovererInfo * info)
g_variant_get_data (variant), g_variant_get_size (variant), NULL);
g_variant_unref (variant);
}
}
static void
emit_discovererd (GstDiscoverer * dc)
emit_discovered (GstDiscoverer * dc)
{
GstDiscovererInfo *info = dc->priv->current_info;
GST_DEBUG_OBJECT (dc, "Emitting 'discoverered' %s", info->uri);
GST_DEBUG_OBJECT (dc, "Emitting 'discovered' %s", info->uri);
g_signal_emit (dc, gst_discoverer_signals[SIGNAL_DISCOVERED], 0,
info, dc->priv->current_error);
@ -1394,9 +1393,9 @@ emit_discovererd (GstDiscoverer * dc)
}
static gboolean
emit_discovererd_and_next (GstDiscoverer * dc)
emit_discovered_and_next (GstDiscoverer * dc)
{
emit_discovererd (dc);
emit_discovered (dc);
DISCO_LOCK (dc);
setup_next_uri_locked (dc);
@ -1522,7 +1521,7 @@ discoverer_collect (GstDiscoverer * dc)
_ensure_info_tags (dc);
serialize_info_if_required (dc, dc->priv->current_info);
if (dc->priv->async)
emit_discovererd (dc);
emit_discovered (dc);
}
static void
@ -2074,7 +2073,7 @@ start_discovering (GstDiscoverer * dc)
source = g_idle_source_new ();
g_source_set_callback (source,
(GSourceFunc) emit_discovererd_and_next, gst_object_ref (dc),
(GSourceFunc) emit_discovered_and_next, gst_object_ref (dc),
gst_object_unref);
g_source_attach (source, dc->priv->ctx);
goto beach;