Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2023 10:29:18 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 30d279cccdb7 - 2023Q2 - net/minidlna: Teach minidlna to handle .ass subtitle format.
Message-ID:  <202306181029.35IATIom098839@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q2 has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=30d279cccdb743ffef6ba19f84b8f469fd0a3bfb

commit 30d279cccdb743ffef6ba19f84b8f469fd0a3bfb
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-06-18 10:26:46 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-06-18 10:29:05 +0000

    net/minidlna: Teach minidlna to handle .ass subtitle format.
    
    (cherry picked from commit fd5e21bd97945073316f3a3fbd110c13ef3827ae)
---
 net/minidlna/Makefile               |  1 +
 net/minidlna/files/patch-metadata.c | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/net/minidlna/Makefile b/net/minidlna/Makefile
index 5bb84ea0f470..e846ae7f1958 100644
--- a/net/minidlna/Makefile
+++ b/net/minidlna/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	minidlna
 PORTVERSION=	1.3.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net multimedia www
 MASTER_SITES=	SF
diff --git a/net/minidlna/files/patch-metadata.c b/net/minidlna/files/patch-metadata.c
new file mode 100644
index 000000000000..32b4bde4729b
--- /dev/null
+++ b/net/minidlna/files/patch-metadata.c
@@ -0,0 +1,14 @@
+--- metadata.c.orig	2022-08-30 05:42:54 UTC
++++ metadata.c
+@@ -146,6 +146,11 @@ check_for_captions(const char *path, int64_t detailID)
+ 		strcpy(p, ".smi");
+ 		ret = access(file, R_OK);
+ 	}
++	if (ret != 0)
++	{
++		strcpy(p, ".ass");
++		ret = access(file, R_OK);
++	}
+ 
+ 	if (ret == 0)
+ 	{



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306181029.35IATIom098839>