From c0b92c190b69c1cdea8373b9a9c96710d6a301ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sat, 5 Jun 2021 22:24:26 +0200 Subject: [PATCH] mpris: Fix wrong object type Fix a copy-paste bug --- lib/gst/clapper/gstclapper-mpris.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/gst/clapper/gstclapper-mpris.c b/lib/gst/clapper/gstclapper-mpris.c index fff485f0..3e60e35d 100644 --- a/lib/gst/clapper/gstclapper-mpris.c +++ b/lib/gst/clapper/gstclapper-mpris.c @@ -771,12 +771,8 @@ gst_clapper_mpris_new (const gchar * own_name, const gchar * id_path, const gchar * identity, const gchar * desktop_entry, const gchar * default_art_url) { - GstClapperMpris *self; - - self = g_object_new (GST_TYPE_CLAPPER, + return g_object_new (GST_TYPE_CLAPPER_MPRIS, "own-name", own_name, "id_path", id_path, "identity", identity, "desktop-entry", desktop_entry, "default-art-url", default_art_url, NULL); - - return self; }