Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 8203015244ee66d1d9ff1bc2dbce5576 > files > 1

xplayer-plparser-1.0.2-5.mga9.src.rpm

From ddf609819c6cd55883ea7d42b6f630277afd785c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Sun, 20 Sep 2020 20:13:05 +0300
Subject: [PATCH] Port to gmime-3.0

---
 configure.ac                | 4 ++--
 plparse/xplayer-pl-parser.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4207926..b718eb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,8 +81,8 @@ AC_ARG_ENABLE(gmime-i-know-what-im-doing,
 
 if test "x$enable_gmime" = "xyes" ; then
    PKG_CHECK_MODULES(GMIME,  
-		       gmime-2.6,
-		       [have_gmime=yes GMIME=gmime-2.6], 
+		       gmime-3.0,
+		       [have_gmime=yes GMIME=gmime-3.0],
 		       [have_gmime=no])
 
    if test "x$have_gmime" = "xyes" ; then
diff --git a/plparse/xplayer-pl-parser.c b/plparse/xplayer-pl-parser.c
index e43752a..5125651 100644
--- a/plparse/xplayer-pl-parser.c
+++ b/plparse/xplayer-pl-parser.c
@@ -2337,7 +2337,7 @@ xplayer_pl_parser_parse_date (const char *date_str, gboolean debug)
 	}
 	D(g_message ("Failed to parse duration '%s' using the ISO8601 parser", date_str));
 	/* Fall back to RFC 2822 date parsing */
-	return g_mime_utils_header_decode_date (date_str, NULL);
+	return g_mime_utils_header_decode_date (date_str);
 #else
 	WARN_NO_GMIME;
 #endif /* HAVE_GMIME */
-- 
2.28.0