Description: Fix incompatible pointer types in g_locale_to_utf8/g_convert calls
 dirdialog.c and playlist.c declare bytes_read/bytes_written as gint and pass
 their addresses to g_locale_to_utf8()/g_convert(), which expect gsize*
 (unsigned long*). GCC 14+ rejects this with -Wincompatible-pointer-types,
 breaking the build. Change both declarations to gsize, matching the other
 call sites (mainwindow.c, miscwindow.c).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: upstream
Forwarded: not-needed
Last-Update: 2026-09-04

--- mplinuxman-1.5.orig/dirdialog.c
+++ mplinuxman-1.5/dirdialog.c
@@ -24,8 +24,8 @@
 // if not a valid utf-8 string try to convert from current locale charset to utf-8 
 //  fallback to iso8859-1 charset  
 gchar* dirsel_convert_if_needed(gchar* text) {
-	gint bytes_read;
-	gint bytes_written;
+	gsize bytes_read;
+	gsize bytes_written;
 	gchar* conv_text;
 	GError*	gerror = NULL;
 	static gchar* free_text = NULL;
--- mplinuxman-1.5.orig/playlist.c
+++ mplinuxman-1.5/playlist.c
@@ -457,8 +457,8 @@ void cfg_Save() {
 // if not a valid utf-8 string try to convert from current locale charset to utf-8 
 //  fallback to iso8859-1 charset  
 gchar* convert_if_needed(gchar* text) {
-	gint bytes_read;
-	gint bytes_written;
+	gsize bytes_read;
+	gsize bytes_written;
 	gchar* conv_text;
 	GError*	gerror = NULL;
 	static gchar* free_text = NULL;
