discoverer: Fix typos
authorThibault Saunier <tsaunier@igalia.com>
Mon, 28 Oct 2024 15:38:39 +0000 (12:38 -0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 28 Nov 2024 07:53:15 +0000 (07:53 +0000)
discovererd / discoverered -> discovered

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7986>

subprojects/gst-plugins-base/gst-libs/gst/pbutils/gstdiscoverer.c

index dbbdc4d52e34886d54c0aa4dd569d01096ca96e5..5e72e797cb13c08e1bd19e037e8a889ffe6672d4 100644 (file)
@@ -211,7 +211,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,
@@ -1367,7 +1367,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 {
@@ -1389,10 +1389,10 @@ _ensure_info_tags (GstDiscoverer * dc)
 }
 
 static void
-emit_discovererd (GstDiscoverer * dc)
+emit_discovered (GstDiscoverer * dc)
 {
   GstDiscovererInfo *info = _ensure_info_tags (dc);
-  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);
   /* Clients get a copy of current_info since it is a boxed type */
@@ -1401,9 +1401,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);
@@ -1537,7 +1537,7 @@ discoverer_collect (GstDiscoverer * dc)
   }
 
   if (dc->priv->async)
-    emit_discovererd (dc);
+    emit_discovered (dc);
 }
 
 static void
@@ -2098,7 +2098,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;