app-cdr/brasero: fixed incompatible pointers + sorted vars

Closes: https://bugs.gentoo.org/919078
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Miroslav Šulc
2024-07-06 15:28:56 +02:00
parent 7b0148a248
commit 6ff37b45dd
2 changed files with 27 additions and 1 deletions

View File

@@ -11,8 +11,8 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Brasero"
LICENSE="GPL-2+ CC-BY-SA-3.0"
SLOT="0/3.1" # subslot is 3.suffix of libbrasero-burn3
IUSE="+css +introspection +libburn mp3 nautilus playlist tracker"
KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv x86"
IUSE="+css +introspection +libburn mp3 nautilus playlist tracker"
DEPEND="
>=dev-libs/glib-2.29.14:2
@@ -58,6 +58,10 @@ BDEPEND="
PDEPEND="gnome-base/gvfs"
PATCHES=(
"${FILESDIR}/${P}-incompatible-pointers.patch"
)
src_configure() {
gnome2_src_configure \
--disable-caches \

View File

@@ -0,0 +1,22 @@
--- a/libbrasero-burn/brasero-drive-properties.c
+++ b/libbrasero-burn/brasero-drive-properties.c
@@ -844,7 +844,7 @@ brasero_drive_properties_set_property (GObject *object,
/* NOTE: no need to unref a potential previous session since
* it's only set at construct time */
session = g_value_get_object (value);
- priv->session = g_object_ref (session);
+ priv->session = (BraseroSessionCfg *)g_object_ref (session);
brasero_drive_properties_update (BRASERO_DRIVE_PROPERTIES (object));
priv->valid_sig = g_signal_connect (session,
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -665,7 +665,7 @@ brasero_metadata_install_missing_plugins (BraseroMetadata *self)
context = gst_install_plugins_context_new ();
gst_install_plugins_context_set_xid (context, brasero_metadata_get_xid (self));
- status = gst_install_plugins_async ((gchar **) details->pdata,
+ status = gst_install_plugins_async ((const gchar * const *) details->pdata,
context,
brasero_metadata_install_plugins_result,
downloads);