I hope tomato minidlna support for rmvb
Minidlna support for RMVB patches
diff -ur minidlna-1.1.0/metadata.c minidlna-1.1.0.new/metadata.c
—- minidlna-1.1.0/metadata.c 2013-03-09 08:03:03.000000000 +0800
minidlna-1.1.0.new/metadata.c 2013-09-07 20:19:31.700278182 +0800
-903,6 +903,8
xasprintf(&m.mime, "video/x-matroska");
else if( strcmp(ctx->iformat->name, "flv") == 0 )
xasprintf(&m.mime, "video/x-flv");
else if( strcmp(ctx->iformat->name, "rm") == 0 )
asprintf(&m.mime, "video/x-pn-realvideo");
if( m.mime )
goto video_no_dlna;
diff -ur minidlna-1.1.0/upnpglobalvars.h minidlna-1.1.0.new/upnpglobalvars.h
—- minidlna-1.1.0/upnpglobalvars.h 2013-04-05 07:39:12.000000000 +0800
minidlna-1.1.0.new/upnpglobalvars.h 2013-09-07 20:21:40.564283420 +0800
-168,7 +168,8
"http-get:*:audio/mp4:*," "http-get:*:audio/x-wav:*," "http-get:*:audio/x-flac:*," - "http-get:*:application/ogg:*"
"http-get:*:application/ogg:*,"+ "http-get:*:video/x-pn-realvideo:*"
#define DLNA_FLAG_DLNA_V1_5 0x00100000
#define DLNA_FLAG_HTTP_STALLING 0x00200000
diff -ur minidlna-1.1.0/utils.c minidlna-1.1.0.new/utils.c
—- minidlna-1.1.0/utils.c 2013-04-03 07:29:21.000000000 +0800
minidlna-1.1.0.new/utils.c 2013-09-07 20:18:40.796283001 +0800
-375,6 +375,7
ends_with(file, ".m2t") || ends_with(file, ".mkv") ||
ends_with(file, ".vob") || ends_with(file, ".ts") ||
ends_with(file, ".flv") || ends_with(file, ".xvid") ||
ends_with(file, ".rm") || ends_with(file, ".rmvb") ||
#ifdef TIVO_SUPPORT
ends_with(file, ".TiVo") ||
#endif
ebuild文件就是在src_prepare阶段,增加了:epatch “${FILESDIR}”/${PN}-1.1.0-rmvb.patch,打上这个补丁即可。
www。pppei。net/blog/blog/wp-content/uploads/2013/06/999-realmedia-support.patch_.tar.bz2
Minidlna support for RMVB patches