Support for gnome-desktop 43.
See https://gitlab.gnome.org/GNOME/totem/-/merge_requests/273

--- totem-42.0/src/icon-helpers.c.orig
+++ totem-42.0/src/icon-helpers.c
@@ -194,6 +194,9 @@
 	const char *uri;
 	GDateTime *mtime;
 	gint64 unix_date;
+#if defined(GNOME_DESKTOP_PLATFORM_VERSION) && GNOME_DESKTOP_PLATFORM_VERSION >= 43
+	GError *error = NULL;
+#endif
 
 	if (g_task_return_error_if_cancelled (task)) {
 		g_object_unref (task);
@@ -220,6 +223,24 @@
 		return;
 	}
 
+#if defined(GNOME_DESKTOP_PLATFORM_VERSION) && GNOME_DESKTOP_PLATFORM_VERSION >= 43
+	tmp_pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, uri, "video/x-totem-stream", NULL, &error);
+
+	if (!tmp_pixbuf) {
+		g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Thumbnailing failed: %s", error->message);
+		g_object_unref (task);
+		g_error_free (error);
+		return;
+	}
+
+	gnome_desktop_thumbnail_factory_save_thumbnail (factory, tmp_pixbuf, uri, unix_date, NULL, &error);
+	if (error) {
+		g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "Thumbnailing failed: %s", error->message);
+		g_object_unref (task);
+		g_error_free (error);
+		return;
+	}
+#else
 	tmp_pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (factory, uri, "video/x-totem-stream");
 
 	if (!tmp_pixbuf) {
@@ -229,6 +250,7 @@
 	}
 
 	gnome_desktop_thumbnail_factory_save_thumbnail (factory, tmp_pixbuf, uri, unix_date);
+#endif
 
 	/* Save the thumbnail URL for the bookmarks source */
 	save_bookmark_thumbnail (media, uri);